|
|
@ -213,10 +213,20 @@ noted, any given module does support change hooks.</p>
|
|
|
|
<ul class="simple">
|
|
|
|
<ul class="simple">
|
|
|
|
<li>Can be either ‘installed’, ‘removed’, or ‘latest’. The default is ‘installed’.</li>
|
|
|
|
<li>Can be either ‘installed’, ‘removed’, or ‘latest’. The default is ‘installed’.</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p><em>update-cache</em>:</p>
|
|
|
|
|
|
|
|
<ul class="simple">
|
|
|
|
|
|
|
|
<li>Whether apt cache must be updated prior operation. Optional, and can be
|
|
|
|
|
|
|
|
‘yes’, or ‘no’. The default is ‘no’.</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p><em>purge</em>:</p>
|
|
|
|
|
|
|
|
<ul class="simple">
|
|
|
|
|
|
|
|
<li>Will force purge of configuration file for when ensure is set to ‘removed’.
|
|
|
|
|
|
|
|
Defaults to ‘no’.</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
<p>Example action from Ansible <a class="reference internal" href="playbooks.html"><em>Playbooks</em></a>:</p>
|
|
|
|
<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
|
|
|
|
<div class="highlight-python"><pre>apt pkg=foo ensure=removed
|
|
|
|
apt pkg=foo ensure=installed
|
|
|
|
apt pkg=foo ensure=installed
|
|
|
|
apt pkg=foo ensure=latest</pre>
|
|
|
|
apt pkg=foo ensure=latest update-cache=yes</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p>NOTE: the apt module cannot currently request installation of a specific software version, as the yum
|
|
|
|
<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>
|
|
|
|
module can. This should be available in a future release.</p>
|
|
|
|