ansible / ansible.builtin / v2.8.17 / module / apt_repo Manage APT repositories via apt-repo | "added in version" 2.8 of ansible.builtin" Authors: Mikhail Gordeev (@obirvalger) preview | supported by communityansible.builtin.apt_repo (v2.8.17) — module
pip
Install with pip install ansible==2.8.17
Manages APT repositories using apt-repo tool.
See U(https://www.altlinux.org/Apt-repo) for details about apt-repo
- 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
repo: description: - Name of the repository to add or remove. required: true state: choices: - absent - present default: present description: - Indicates the desired repository state. update: default: 'no' description: - Update the package database after changing repositories. type: bool remove_others: default: 'no' description: - Remove other then added repositories - Used if I(state=present) type: bool