apt_repository
Collection: builtin
Full Name: parallax.builtin.apt_repository
Aliases: ansible.builtin.apt_repository, apt_repository
Synopsis
Manage apt repository
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| repo | string | yes | A source string for the repository | |
| state | string | present | A source string state Choices: absent, present | |
| mode | string | 0644 | The octal mode for newly created files | |
| update_cache | bool | true | Run the equivalent of apt-get update after adding the repository | |
| update_cache_retries | int | 5 | Number of retries for apt-get update | |
| update_cache_retry_max_delay | int | 12 | Maximum delay between retries in seconds | |
| validate_certs | bool | true | If false, SSL certificates for the target repo will not be validated | |
| filename | string | Sets the name of the source list file in sources.list.d | ||
| codename | string | Override the distribution codename to use for PPA repositories |
Example
- name: Example apt_repository task
apt_repository:
repo: <your_repo>