arillso.system.apt_repositories role – Manage APT repositories

Note

This role is part of the arillso.system collection (version 0.0.34).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install arillso.system.

To use it in a playbook, specify: arillso.system.apt_repositories.

Entry point main – Manage APT repositories

Synopsis

  • This specification manages the addition, modification, and removal of APT repositories on a system.

Parameters

Parameter

Comments

apt_repositories_filename

string

Default filename for APT repositories if not specified in each repository dictionary.

Default: "default.list"

apt_repositories_list

list / elements=dictionary

A list of dictionaries specifying APT repositories to manage.

Default: []

codename

string

Codename of the distribution version for the repository.

filename

string

Filename under which the repository is stored.

Default: "default.list"

install_python_apt

boolean

Whether to install the python-apt package if necessary for the repository.

Choices:

  • false

  • true

mode

string

File permissions for the repository file.

repo

string

Repository entry line (e.g., ‘deb http://myrepo.example.com/debian buster main’).

state

string

State of the repository (‘present’ or ‘absent’).

Default: "present"

update_cache

boolean

Whether to update the cache after adding the repository.

Choices:

  • false

  • true ← (default)

update_cache_retries

integer

Number of retries to update the cache after adding the repository.

Default: 5

update_cache_retry_max_delay

integer

Maximum delay in seconds between retries to update the cache.

Default: 12

validate_certs

boolean

Whether to validate SSL certificates for HTTPS repositories.

Choices:

  • false

  • true

apt_repositories_update_cache

boolean

Default value to decide whether to update the cache after adding a repository.

Choices:

  • false

  • true ← (default)

apt_repositories_update_cache_retries

integer

Default value for the number of retries to update the cache after adding a repository.

Default: 5

apt_repositories_update_cache_retry_max_delay

integer

Default maximum delay in seconds between retries to update the cache.

Default: 12

Entry point repositories – Manage APT repositories

Synopsis

  • This specification manages the addition, modification, and removal of APT repositories on a system.

Parameters

Parameter

Comments

apt_repositories_filename

string

Default filename for APT repositories if not specified in each repository dictionary.

Default: "default.list"

apt_repositories_list

list / elements=dictionary

A list of dictionaries specifying APT repositories to manage.

Default: []

codename

string

Codename of the distribution version for the repository.

filename

string

Filename under which the repository is stored.

Default: "default.list"

install_python_apt

boolean

Whether to install the python-apt package if necessary for the repository.

Choices:

  • false

  • true

mode

string

File permissions for the repository file.

repo

string

Repository entry line (e.g., ‘deb http://myrepo.example.com/debian buster main’).

state

string

State of the repository (‘present’ or ‘absent’).

Default: "present"

update_cache

boolean

Whether to update the cache after adding the repository.

Choices:

  • false

  • true ← (default)

update_cache_retries

integer

Number of retries to update the cache after adding the repository.

Default: 5

update_cache_retry_max_delay

integer

Maximum delay in seconds between retries to update the cache.

Default: 12

validate_certs

boolean

Whether to validate SSL certificates for HTTPS repositories.

Choices:

  • false

  • true

apt_repositories_update_cache

boolean

Default value to decide whether to update the cache after adding a repository.

Choices:

  • false

  • true ← (default)

apt_repositories_update_cache_retries

integer

Default value for the number of retries to update the cache after adding a repository.

Default: 5

apt_repositories_update_cache_retry_max_delay

integer

Default maximum delay in seconds between retries to update the cache.

Default: 12