Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
ansible_user Not being parsed
210 views
Skip to first unread message
Ankit Sharma
unread,
Sep 30, 2015, 11:54:22 AM
9/30/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
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
Hi,
I have the following /etc/ansible//hosts file
[servers]
1.1.1.1 ansible_user=centos ansible_ssh_private_key_file=keys/1server.pem
when I issue the following command
ansible all -vvvv -m setup
It tries to login as root
however the following works
ansible all -u centos -vvvv -m setup
where am I going wrong?
Ankit Sharma
unread,
Sep 30, 2015, 7:54:09 PM
9/30/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
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
can anyone please respond
Ankit Sharma
unread,
Sep 30, 2015, 8:10:55 PM
9/30/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
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
I have fixed this on my own, the documentation on the website needs to be updated.
I used ansible_ssh_user instead of ansible_user
It worked like a charm!!
On Thursday, 1 October 2015 01:54:22 UTC+10, Ankit Sharma wrote:
Reply all
Reply to author
Forward
0 new messages