mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-10 11:11:29 -07:00
Merge pull request #140 from ludovicc/master
Document sudo_user in playbook
This commit is contained in:
commit
2f71eb0366
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ Support for running things from sudo is also available::
|
||||||
- hosts: webservers
|
- hosts: webservers
|
||||||
user: yourname
|
user: yourname
|
||||||
sudo: True
|
sudo: True
|
||||||
|
sudo_user: privileged_user
|
||||||
|
|
||||||
If you need to specify a password to sudo, run `ansible-playbook` with ``--ask-sudo-pass`` (`-K`).
|
If you need to specify a password to sudo, run `ansible-playbook` with ``--ask-sudo-pass`` (`-K`).
|
||||||
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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue