Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
806fdf0f
Commit
806fdf0f
authored
Apr 19, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify update-cache
parent
6c99039a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
modules.html
+11
-1
rst/modules.rst
+3
-1
searchindex.js
+0
-0
No files found.
modules.html
View file @
806fdf0f
...
...
@@ -213,10 +213,20 @@ noted, any given module does support change hooks.</p>
<ul
class=
"simple"
>
<li>
Can be either
‘
installed
’
,
‘
removed
’
, or
‘
latest
’
. The default is
‘
installed
’
.
</li>
</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>
<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>
...
...
rst/modules.rst
View file @
806fdf0f
...
...
@@ -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
...
...
searchindex.js
View file @
806fdf0f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment