Merge pull request #2829 from lorin/per-task-sudo

Document: sudo works per-task too
This commit is contained in:
Michael DeHaan 2013-05-05 09:40:13 -07:00
commit 62453e1d53

View file

@ -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::
---