if you want to add the user that runs the playbook, irrespective of
the user used to login, try:

 name={{ lookup('env', 'USER") }}

ansible_ssh_user reflects the LOGIN user set for the remote machine,
in 1.9 it always set it, which caused issues with .ssh/config, in 2.0
if not set it will be None, in which case ssh uses the 'current user'
but it ends up not being specified in Ansible.



-- 
Brian Coca

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8nMwesaza0fDed1iNvskYpXybvdnyzy8KiNxiq96RTKqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to