mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-30 07:50:43 +00:00
Allude to apt on the examples page.
This commit is contained in:
parent
1f565c3d76
commit
d7b11e4a10
6 changed files with 21 additions and 18 deletions
|
|
@ -235,6 +235,7 @@ ansible webservers -m file -a "dest=/srv/foo/b.txt mode=600 owner=mdehaan group=
|
|||
</div>
|
||||
<div class="section" id="managing-packages">
|
||||
<h2>Managing Packages<a class="headerlink" href="#managing-packages" title="Permalink to this headline">¶</a></h2>
|
||||
<p>There are modules available for yum and apt. Here are some examples with yum.</p>
|
||||
<p>Ensure a package is installed, but don’t update it:</p>
|
||||
<div class="highlight-python"><pre>ansible webservers -m yum -a "pkg=acme state=installed"</pre>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue