1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add new apt options and replace 'ensure' with 'state'

This commit is contained in:
Michael DeHaan 2012-04-25 22:28:22 -04:00
parent 26fb8eeb99
commit c6a709a954

View file

@ -44,7 +44,7 @@ Manages apt-packages (such as for Debian/Ubuntu).
*pkg*:
* A package name or package specifier with version, like name-1.0
* A package name or package specifier with version, like foo=1.0
*state*:
@ -61,12 +61,17 @@ Manages apt-packages (such as for Debian/Ubuntu).
* Will force purge of configuration file for when ensure is set to 'removed'.
Defaults to 'no'.
*default-release*:
* Corresponds to the -t option for apt, and sets pin priorities
Example action from Ansible :doc:`playbooks`::
apt pkg=foo update-cache=yes
apt pkg=foo ensure=removed
apt pkg=foo ensure=installed
apt pkg=foo ensure=latest update-cache=yes
apt pkg=foo state=removed
apt pkg=foo state=installed
apt pkg=foo=1.00 state=installed
apt pkg=nginx state=latest default-release=squeeze-backports update-cache=yes
NOTE: the apt module cannot currently request installation of a specific software version, as the yum