mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add sudo password info.
This commit is contained in:
parent
7c1b25e49b
commit
2850b8d921
1 changed files with 4 additions and 2 deletions
|
@ -25,9 +25,11 @@ If you want to run commands as a different user than root::
|
|||
|
||||
ansible atlanta -a "/usr/bin/foo" -u yourname
|
||||
|
||||
If you want to run commands through sudo::
|
||||
If you want to run commands through sudo:
|
||||
|
||||
ansible atlanta -a "/usr/bin/foo" -u yourname --sudo
|
||||
ansible atlanta -a "/usr/bin/foo" -u yourname --sudo [--ask-sudo-pass]
|
||||
|
||||
Use --ask-sudo-pass (-K) if you are not using passwordless sudo.
|
||||
|
||||
If you need to access SSH on a different port::
|
||||
|
||||
|
|
Loading…
Reference in a new issue