New in version 2.8.
Parameter | Choices/Defaults | Comments |
---|---|---|
remove_others
boolean
|
|
Remove other then added repositories
Used if state=present
|
repo
-
/ required
|
Name of the repository to add or remove.
|
|
state
-
|
|
Indicates the desired repository state.
|
update
boolean
|
|
Update the package database after changing repositories.
|
Note
- name: Remove all repositories
apt_repo:
repo: all
state: absent
- name: Add repository `Sisysphus` and remove other repositories
apt_repo:
repo: Sisysphus
state: present
remove_others: yes
- name: Add local repository `/space/ALT/Sisyphus` and update package cache
apt_repo:
repo: copy:///space/ALT/Sisyphus
state: present
update: yes
Hint
If you notice any issues in this documentation you can edit this document to improve it.