From c6a709a9548f7351287b72a6642e2d564d162fcb Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 25 Apr 2012 22:28:22 -0400 Subject: [PATCH] Add new apt options and replace 'ensure' with 'state' --- rst/modules.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/rst/modules.rst b/rst/modules.rst index 2510a1d98e..6da7f2d39b 100644 --- a/rst/modules.rst +++ b/rst/modules.rst @@ -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