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

Clarify update-cache

This commit is contained in:
Michael DeHaan 2012-04-19 09:57:30 -04:00
parent 6c99039a9b
commit 806fdf0fbe
3 changed files with 15 additions and 3 deletions

View file

@ -213,10 +213,20 @@ noted, any given module does support change hooks.</p>
<ul class="simple">
<li>Can be either &#8216;installed&#8217;, &#8216;removed&#8217;, or &#8216;latest&#8217;. The default is &#8216;installed&#8217;.</li>
</ul>
<p><em>update-cache</em>:</p>
<ul class="simple">
<li>Whether apt cache must be updated prior operation. Optional, and can be
&#8216;yes&#8217;, or &#8216;no&#8217;. The default is &#8216;no&#8217;.</li>
</ul>
<p><em>purge</em>:</p>
<ul class="simple">
<li>Will force purge of configuration file for when ensure is set to &#8216;removed&#8217;.
Defaults to &#8216;no&#8217;.</li>
</ul>
<p>Example action from Ansible <a class="reference internal" href="playbooks.html"><em>Playbooks</em></a>:</p>
<div class="highlight-python"><pre>apt pkg=foo ensure=removed
apt pkg=foo ensure=installed
apt pkg=foo ensure=latest</pre>
apt pkg=foo ensure=latest update-cache=yes</pre>
</div>
<p>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.</p>

View file

@ -53,7 +53,8 @@ Manages apt-packages (such as for Debian/Ubuntu).
*update-cache*:
* Whether apt cache must be updated prior operation. Optional, and can be
'yes', or 'no'. The default is 'no'.
'yes', or 'no'. The default is 'no'. This can be done as the part of a
package operation or as a seperate step.
*purge*:
@ -62,6 +63,7 @@ Manages apt-packages (such as for Debian/Ubuntu).
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

File diff suppressed because one or more lines are too long