New in version 1.5.
parameter | required | default | choices | comments |
---|---|---|---|---|
pkg |
yes | name of package to install, upgrade or remove. | ||
state |
no | present |
|
Indicates the desired package state |
update_cache |
no |
|
update the package database first apt-get update . |
# 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
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is community maintained without core committer oversight.
For more information on what this means please read Module Support
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.