Commit c66b7248 by Lorin Hochstein

Document: sudo works per-task too

Document that you can use sudo at the task level as well
parent ce67588d
......@@ -98,6 +98,16 @@ Support for running things from sudo is also available::
user: yourname
sudo: yes
You can also use sudo on a particular task instead of the whole play::
---
- hosts: webservers
user: yourname
tasks:
- service: name=nginx state=started
sudo: yes
You can also login as you, and then sudo to different users than root::
---
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment