I created a file,
which has a simple line
--- ansible_user: centos
My inventory filemy
However, when I use
ansible -m ping I see that it's trying to connect with my regular user.
~/cp/ansible$ ansible -vvv centos -m ping .... stuff "msg": "Failed to connect to the host via ssh: email@example.com: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).", "unreachable": true
You can see it's trying to connect with
ecarroll@ and not
centos@. Does Ansible
-m work with
./group_vars/ if I'm using a global inventory?