setting remote_user at top level of playbook has no effect on tasks!?

86 views
Skip to first unread message

MidGe

unread,
Feb 22, 2014, 7:21:40 AM2/22/14
to ansible...@googlegroups.com
There is something I do not understand about remote_user.

When I set a remote_user at the top level of a playbook, when it comes to tasks, it seems to use my user name on the invoking machine  (there is a similarly named user on the target) to execute the task unless I also specify the desired remote_user at the task level.  Is that the expected behaviour?  If so, what is the use of setting remote_user at the top level? Is it simply to log in?

Thanks for any clarifications.  BTW I use the latest git cloned version of Ansible and my target is a Debian 7 server.

Michael DeHaan

unread,
Feb 24, 2014, 2:34:44 PM2/24/14
to ansible...@googlegroups.com
Can you show me an example playbook and output that illustrates this problem?  (Possibly suggest running with -vvv to show the users being used in each step).

Thanks!




--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5f08ba97-aabf-4efd-86d8-a6727367d30c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages