community.general.apt_repo – Manage APT repositories via apt-repo¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.apt_repo
.
Synopsis¶
Manages APT repositories using apt-repo tool.
See https://www.altlinux.org/Apt-repo for details about apt-repo
Parameters¶
Notes¶
Note
This module works on ALT based distros.
Does NOT support checkmode, due to a limitation in apt-repo tool.
Examples¶
- name: Remove all repositories
community.general.apt_repo:
repo: all
state: absent
- name: Add repository `Sisysphus` and remove other repositories
community.general.apt_repo:
repo: Sisysphus
state: present
remove_others: yes
- name: Add local repository `/space/ALT/Sisyphus` and update package cache
community.general.apt_repo:
repo: copy:///space/ALT/Sisyphus
state: present
update: yes
Authors¶
Mikhail Gordeev (@obirvalger)