1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fix uptime API example

This commit is contained in:
Michael DeHaan 2012-08-24 19:33:14 -04:00
parent b8ba2d3066
commit 3ebf6cb223
17 changed files with 18 additions and 18 deletions

View file

@ -289,7 +289,7 @@ languages:
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -235,7 +235,7 @@ be used as a framework to rapidly build powerful applications and scripts.</p>
<span class="c"># construct the ansible runner and execute on all hosts</span>
<span class="n">results</span> <span class="o">=</span> <span class="n">ansible</span><span class="o">.</span><span class="n">runner</span><span class="o">.</span><span class="n">Runner</span><span class="p">(</span>
<span class="n">pattern</span><span class="o">=</span><span class="s">&#39;*&#39;</span><span class="p">,</span> <span class="n">forks</span><span class="o">=</span><span class="mi">10</span><span class="p">,</span>
<span class="n">module_name</span><span class="o">=</span><span class="s">&#39;command&#39;</span><span class="p">,</span> <span class="n">module_args</span><span class="o">=</span><span class="p">[</span><span class="s">&#39;/usr/bin/uptime&#39;</span><span class="p">],</span>
<span class="n">module_name</span><span class="o">=</span><span class="s">&#39;command&#39;</span><span class="p">,</span> <span class="n">module_args</span><span class="o">=</span><span class="s">&#39;/usr/bin/uptime&#39;</span><span class="p">,</span>
<span class="p">)</span><span class="o">.</span><span class="n">run</span><span class="p">()</span>
<span class="k">if</span> <span class="n">results</span> <span class="ow">is</span> <span class="bp">None</span><span class="p">:</span>
@ -468,7 +468,7 @@ e.g.
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -340,7 +340,7 @@ different variables to different geographies.</p>
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -442,7 +442,7 @@ what their names or IP addresses are).</p>
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -409,7 +409,7 @@ tasks &#8211; whether for a QA sytem, build system, or anything you can think of
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -204,7 +204,7 @@ s.parentNode.insertBefore(ga, s);
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -410,7 +410,7 @@ explore, but you already have a fully working infrastructure!</p>
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -419,7 +419,7 @@ Puppet Labs, and is now with <a class="reference external" href="http://rpath.co
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -511,7 +511,7 @@ the program. Stop by the mailing list to inquire about requirements.</p>
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -1800,7 +1800,7 @@ yum name=httpd state=installed</pre>
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -392,7 +392,7 @@ Ansible 0.7. Ansible 0.6 includes a <a class="reference external" href="https:/
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -550,7 +550,7 @@ can do this:</p>
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -725,7 +725,7 @@ place to set such a default is in a group variable.</p>
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

View file

@ -56,7 +56,7 @@ The following script prints out the uptime information for all hosts::
# construct the ansible runner and execute on all hosts
results = ansible.runner.Runner(
pattern='*', forks=10,
module_name='command', module_args=['/usr/bin/uptime'],
module_name='command', module_args='/usr/bin/uptime',
).run()
if results is None:

View file

@ -221,7 +221,7 @@ s.parentNode.insertBefore(ga, s);
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>

File diff suppressed because one or more lines are too long

View file

@ -269,7 +269,7 @@ s.parentNode.insertBefore(ga, s);
</p>
<p>
&copy; Copyright 2012 Michael DeHaan.<br/>
Last updated on Aug 21, 2012.<br/>
Last updated on Aug 24, 2012.<br/>
</p>
</div>
</footer>