<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>“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>“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>“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>
<divclass="section"id="resources">
<divclass="section"id="resources">
<h1>Resources<aclass="headerlink"href="#resources"title="Permalink to this headline">¶</a></h1>
<h1>Resources<aclass="headerlink"href="#resources"title="Permalink to this headline">¶</a></h1>
@@ -252,7 +252,8 @@ documentation. The <cite>user</cite> is just the name of the user account:</p>
...
@@ -252,7 +252,8 @@ documentation. The <cite>user</cite> is just the name of the user account:</p>
<divclass="highlight-python"><pre>---
<divclass="highlight-python"><pre>---
- hosts: webservers
- hosts: webservers
user: yourname
user: yourname
sudo: True</pre>
sudo: True
sudo_user: privileged_user</pre>
</div>
</div>
<p>If you need to specify a password to sudo, run <cite>ansible-playbook</cite> with <ttclass="docutils literal"><spanclass="pre">--ask-sudo-pass</span></tt> (<cite>-K</cite>).
<p>If you need to specify a password to sudo, run <cite>ansible-playbook</cite> with <ttclass="docutils literal"><spanclass="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.
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
...
@@ -285,7 +286,9 @@ playbook, and can be used on each system just like explicitly set
variables.</p>
variables.</p>
<p>Facter variables are prefixed with <ttclass="docutils literal"><spanclass="pre">facter_</span></tt> and Ohai
<p>Facter variables are prefixed with <ttclass="docutils literal"><spanclass="pre">facter_</span></tt> and Ohai
variables are prefixed with <ttclass="docutils literal"><spanclass="pre">ohai_</span></tt>. Ansible variables (0.3 and later)
variables are prefixed with <ttclass="docutils literal"><spanclass="pre">ohai_</span></tt>. Ansible variables (0.3 and later)
are not surprisingly prefixed with <ttclass="docutils literal"><spanclass="pre">ansible_</span></tt>. So for instance, if I wanted
are not surprisingly prefixed with <ttclass="docutils literal"><spanclass="pre">ansible_</span></tt> (See the <aclass="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>
to write the hostname into the /etc/motd file, I could say:</p>
<divclass="highlight-python"><pre>- name: write the motd
<divclass="highlight-python"><pre>- name: write the motd
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!)
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!)