mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Rebuild
This commit is contained in:
parent
0ca377eea4
commit
a4004e50df
5 changed files with 13 additions and 8 deletions
|
@ -1,3 +1,4 @@
|
|||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
|
@ -254,7 +255,6 @@ hosts.</p>
|
|||
<p>“I’ve been trying to grok Chef these last weeks, and really, I don’t get it. I discovered ansible yesterday at noon, successfully ran it at 1pm, made my first playbook by 2pm, and pushed two small [contributions to the project] before the office closed... Do that with any other config management software!”</p>
|
||||
<p>“Ansible is much more firewall-friendly. I have a number of hosts that are only accessible via reverse SSH tunnels, and let me tell you getting puppet or chef to play nice with that is a nightmare.”</p>
|
||||
<p>“This software has really changed my life as an network admin, the simplicity ansible comes with is really childs-play and I really adore its design. No more hassle with SSL keys, DNS based ‘server entries’ (e.g. puppet and what not). Just plain (secure!) SSH keys and one is good to go.”</p>
|
||||
<p>“You may get a kick out of the fact that I'm using ansible to install puppetmaster(s). I'm starting to migrate all my stuff to the much more sensical ansible. Nice work.”</p>
|
||||
</div>
|
||||
<div class="section" id="resources">
|
||||
<h1>Resources<a class="headerlink" href="#resources" title="Permalink to this headline">¶</a></h1>
|
||||
|
|
|
@ -239,7 +239,8 @@ noted, any given module does support change hooks.</p>
|
|||
</ul>
|
||||
<p><em>update-cache</em>:</p>
|
||||
<ul class="simple">
|
||||
<li>Whether the apt cache must be updated prior to operation. Optional, and can be
|
||||
<li>Whether the apt cache must be updated prior to operation. This is equivalent
|
||||
to doing “apt-get update”. Optional, and can be
|
||||
‘yes’, or ‘no’. The default is ‘no’. This can be done as the part of a
|
||||
package operation or as a seperate step.</li>
|
||||
</ul>
|
||||
|
@ -446,11 +447,11 @@ file path=/some/path state=directory context=default</pre>
|
|||
<p><em>version</em>:</p>
|
||||
<ul class="simple">
|
||||
<li>What version to check out – either the git SHA, the literal string
|
||||
<tt class="docutils literal"><span class="pre">HEAD</span></tt>, or a tag name.</li>
|
||||
<tt class="docutils literal"><span class="pre">HEAD</span></tt>, branch name, or a tag name.</li>
|
||||
</ul>
|
||||
<p><em>branch</em>:</p>
|
||||
<p><em>remote</em>:</p>
|
||||
<ul class="simple">
|
||||
<li>(new in 0.4) Which branch name to checkout. Defaults to ‘master’.</li>
|
||||
<li>Name of the remote branch, defaults to ‘origin’.</li>
|
||||
</ul>
|
||||
<p>Example action from Ansible <a class="reference internal" href="playbooks.html"><em>Playbooks</em></a>:</p>
|
||||
<div class="highlight-python"><pre>git repo=git://foosball.example.org/path/to/repo.git dest=/srv/checkout version=release-0.22</pre>
|
||||
|
|
|
@ -252,7 +252,8 @@ documentation. The <cite>user</cite> is just the name of the user account:</p>
|
|||
<div class="highlight-python"><pre>---
|
||||
- hosts: webservers
|
||||
user: yourname
|
||||
sudo: True</pre>
|
||||
sudo: True
|
||||
sudo_user: privileged_user</pre>
|
||||
</div>
|
||||
<p>If you need to specify a password to sudo, run <cite>ansible-playbook</cite> with <tt class="docutils literal"><span class="pre">--ask-sudo-pass</span></tt> (<cite>-K</cite>).
|
||||
If you run a sudo playbook and the playbook seems to hang, it’s probably stuck at the sudo prompt.
|
||||
|
@ -285,7 +286,9 @@ playbook, and can be used on each system just like explicitly set
|
|||
variables.</p>
|
||||
<p>Facter variables are prefixed with <tt class="docutils literal"><span class="pre">facter_</span></tt> and Ohai
|
||||
variables are prefixed with <tt class="docutils literal"><span class="pre">ohai_</span></tt>. Ansible variables (0.3 and later)
|
||||
are not surprisingly prefixed with <tt class="docutils literal"><span class="pre">ansible_</span></tt>. So for instance, if I wanted
|
||||
are not surprisingly prefixed with <tt class="docutils literal"><span class="pre">ansible_</span></tt> (See the <a class="reference internal" href="modules.html#setup"><em>setup</em></a> module
|
||||
documentation for a list of Ansible variables).</p>
|
||||
<p>So for instance, if I wanted
|
||||
to write the hostname into the /etc/motd file, I could say:</p>
|
||||
<div class="highlight-python"><pre>- name: write the motd
|
||||
action: template src=/srv/templates/motd.j2 dest=/etc/motd</pre>
|
||||
|
|
|
@ -13,6 +13,7 @@ Who They Are What They Do
|
|||
`Cygate AB <http://cygate.se>`_ IT solutions from Malmö, Sweden
|
||||
`Skyline.es <http://skylin.es>`_ Realtime Photo Search Engine
|
||||
================================================== ===================================================
|
||||
|
||||
and lots of other people (you should see our Google Analytics data). Tweet at [Michael DeHaan](http://twitter.com/laserllama) or [email him](mailto:michael.dehaan@gmail.com) to get your company or project listed here. (It's free!)
|
||||
|
||||
.. seealso::
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue