Are ansible_user in inventory vs remote_user in playbook equivalent?

776 views
Skip to first unread message

techraf

unread,
Oct 12, 2015, 9:14:11 AM10/12/15
to Ansible Project
I am trying to run an Anisble playbook against a server on an account other than the one I am logged on the control machine. I tried to specify an ansible_user in the inventory file according to the documentation on Inventory, however it does not work the way I expected.

On the other hand adding a remote_user argument to the playbook worked for me.

Are the ansible_user in inventory file and remote_user in playbook for different purposed? What is the ansible_user used for? Or why doesn't Ansible observe the setting in the inventory?

Brian Coca

unread,
Oct 23, 2015, 7:56:14 PM10/23/15
to Ansible Project
they are the same, but ansible_user is only a 2.0 thing, in older
versions its ansible_ssh_user



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages