Brian Coca
unread,Jan 23, 2016, 12:02:50 AM1/23/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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