ansible / ansible.builtin / v2.4.4.0-1 / module / apt_rpm apt_rpm package manager | "added in version" 1.5 of ansible.builtin" Authors: Evgenii Terechkov (@evgkrsk) preview | supported by communityansible.builtin.apt_rpm (v2.4.4.0-1) — module
pip
Install with pip install ansible==2.4.4.0.post1
Manages packages with I(apt-rpm). Both low-level (I(rpm)) and high-level (I(apt-get)) package manager binaries required.
# install package foo - apt_rpm: pkg: foo state: present
# remove package foo - apt_rpm: pkg: foo state: absent
# description: remove packages foo and bar - apt_rpm: pkg: foo,bar state: absent
# description: update the package database and install bar (bar will be the updated if a newer version exists) - apt_rpm: name: bar state: present update_cache: yes
pkg: default: null description: - name of package to install, upgrade or remove. required: true state: choices: - absent - present default: present description: - Indicates the desired package state required: false update_cache: choices: - 'yes' - 'no' default: false description: - update the package database first C(apt-get update). required: false