Document per task remote_user, based on #3932

This commit is contained in:
James Tanner 2013-10-15 09:40:37 -04:00
parent 69fa5954fd
commit 6b60267898

View file

@ -103,6 +103,21 @@ documentation. The `remote_user` is just the name of the user account::
The `remote_user` parameter was formerly called just `user`. It was renamed in Ansible 1.4 to make it more distinguishable from the `user` module (used to create users on remote systems).
Remote users can also be defined per task::
---
- hosts: webservers
remote_user: root
tasks:
- name: test connection
ping:
remote_user: yourname
.. Note::
The `remote_user` parameter for tasks was added in 1.4.
Support for running things from sudo is also available::
---