1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
Michael DeHaan 2012-07-25 23:34:02 -04:00
parent 0ca377eea4
commit a4004e50df
5 changed files with 13 additions and 8 deletions

View file

@ -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>&#8220;I&#8217;ve been trying to grok Chef these last weeks, and really, I don&#8217;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!&#8221;</p>
<p>&#8220;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.&#8221;</p>
<p>&#8220;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 &#8216;server entries&#8217; (e.g. puppet and what not). Just plain (secure!) SSH keys and one is good to go.&#8221;</p>
<p>&#8220;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.&#8221;</p>
</div>
<div class="section" id="resources">
<h1>Resources<a class="headerlink" href="#resources" title="Permalink to this headline"></a></h1>

View file

@ -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 &#8220;apt-get update&#8221;. Optional, and can be
&#8216;yes&#8217;, or &#8216;no&#8217;. The default is &#8216;no&#8217;. 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 &#8211; 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 &#8216;master&#8217;.</li>
<li>Name of the remote branch, defaults to &#8216;origin&#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>git repo=git://foosball.example.org/path/to/repo.git dest=/srv/checkout version=release-0.22</pre>

View file

@ -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&#8217;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>

View file

@ -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