community / community.general / 1.3.14 / module / apt_repo Manage APT repositories via apt-repo Authors: Mikhail Gordeev (@obirvalger)community.general.apt_repo (1.3.14) — module
Install with ansible-galaxy collection install community.general:==1.3.14
collections: - name: community.general version: 1.3.14
Manages APT repositories using apt-repo tool.
See U(https://www.altlinux.org/Apt-repo) for details about apt-repo
- 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
repo: description: - Name of the repository to add or remove. required: true type: str state: choices: - absent - present default: present description: - Indicates the desired repository state. type: str update: default: false description: - Update the package database after changing repositories. type: bool remove_others: default: false description: - Remove other then added repositories - Used if I(state=present) type: bool