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:
parent
b733b43e00
commit
85f0ff2572
3 changed files with 1 additions and 11 deletions
|
@ -184,10 +184,6 @@ ssh-add ~/.ssh/id_rsa.pub</pre>
|
|||
<blockquote>
|
||||
<div>ansible atlanta -a “/usr/bin/foo” -u yourname –sudo [–ask-sudo-pass]</div></blockquote>
|
||||
<p>Use –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’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 ‘command’, so we didn’t need to specify that
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue