From 25e86ddb7d9386a9b50329fb640d2c18286fbd5b Mon Sep 17 00:00:00 2001 From: Michel Blanc Date: Thu, 19 Apr 2012 22:25:12 +0200 Subject: [PATCH 1/2] Adds doc for apt operations Documents update-cache and puge apt module options --- rst/modules.rst | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rst/modules.rst b/rst/modules.rst index 4f6efbd5b65..fcc54e7ec68 100644 --- a/rst/modules.rst +++ b/rst/modules.rst @@ -50,11 +50,22 @@ Manages apt-packages (such as for Debian/Ubuntu). * Can be either 'installed', 'removed', or 'latest'. The default is 'installed'. +*update-cache*: + +* Whether to apt cache must be updated prior operation. Optional, and can be + 'yes', or 'no'. The default is 'no'. + +*purge*: + +* Will force purge of configuration file for when ensure is set to 'removed'. + Defaults to 'no'. + Example action from Ansible :doc:`playbooks`:: apt pkg=foo ensure=removed apt pkg=foo ensure=installed - apt pkg=foo ensure=latest + apt pkg=foo ensure=latest update-cache=yes + NOTE: the apt module cannot currently request installation of a specific software version, as the yum module can. This should be available in a future release. From de25ec1f2995e1d0bad2b52f0ca9cf4ce1af39ed Mon Sep 17 00:00:00 2001 From: Michel Blanc Date: Thu, 19 Apr 2012 22:27:29 +0200 Subject: [PATCH 2/2] Fixes typo Fixes typo in apt/update-cache blurb --- rst/modules.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rst/modules.rst b/rst/modules.rst index fcc54e7ec68..4c1408e2429 100644 --- a/rst/modules.rst +++ b/rst/modules.rst @@ -52,7 +52,7 @@ Manages apt-packages (such as for Debian/Ubuntu). *update-cache*: -* Whether to apt cache must be updated prior operation. Optional, and can be +* Whether apt cache must be updated prior operation. Optional, and can be 'yes', or 'no'. The default is 'no'. *purge*: