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

Remove legacy port usage, now belongs in inventory file

This commit is contained in:
Michael DeHaan 2012-04-17 20:00:41 -04:00
parent b733b43e00
commit 85f0ff2572
3 changed files with 1 additions and 11 deletions

View file

@ -184,10 +184,6 @@ ssh-add ~/.ssh/id_rsa.pub</pre>
<blockquote>
<div>ansible atlanta -a &#8220;/usr/bin/foo&#8221; -u yourname &#8211;sudo [&#8211;ask-sudo-pass]</div></blockquote>
<p>Use &#8211;ask-sudo-pass (-K) if you are not using passwordless sudo.</p>
<p>If you need to access SSH on a different port:</p>
<div class="highlight-python"><pre>ansible atlanta -a "/usr/bin/foo" -p 2112</pre>
</div>
<p>(NOTE: this will be changing to just use the inventory file for per-host port settings)</p>
<p>Ok, so those are basics. If you didn&#8217;t read about patterns and groups yet, go back and read <a class="reference internal" href="patterns.html"><em>The Inventory File, Patterns, and Groups</em></a>.</p>
<p>The -f 10 in the above specifies the usage of 10 simultaneous processes. Normally commands also take
a <cite>-m</cite> for module name, but the default module name is &#8216;command&#8217;, so we didn&#8217;t need to specify that

View file

@ -31,12 +31,6 @@ If you want to run commands through sudo:
Use --ask-sudo-pass (-K) if you are not using passwordless sudo.
If you need to access SSH on a different port::
ansible atlanta -a "/usr/bin/foo" -p 2112
(NOTE: this will be changing to just use the inventory file for per-host port settings)
Ok, so those are basics. If you didn't read about patterns and groups yet, go back and read :doc:`patterns`.
The -f 10 in the above specifies the usage of 10 simultaneous processes. Normally commands also take

File diff suppressed because one or more lines are too long