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*: *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*: *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'. * Will force purge of configuration file for when ensure is set to 'removed'.
Defaults to 'no'. Defaults to 'no'.
*default-release*:
* Corresponds to the -t option for apt, and sets pin priorities
Example action from Ansible :doc:`playbooks`:: Example action from Ansible :doc:`playbooks`::
apt pkg=foo update-cache=yes apt pkg=foo update-cache=yes
apt pkg=foo ensure=removed apt pkg=foo state=removed
apt pkg=foo ensure=installed apt pkg=foo state=installed
apt pkg=foo ensure=latest update-cache=yes 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 NOTE: the apt module cannot currently request installation of a specific software version, as the yum