Commit 6b602678 by James Tanner

Document per task remote_user, based on #3932

parent 69fa5954
...@@ -103,6 +103,21 @@ documentation. The `remote_user` is just the name of the user account:: ...@@ -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). 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:: Support for running things from sudo is also available::
--- ---
......
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