User issue while pinging the hosts

18 views
Skip to first unread message

Mahesh N

unread,
Jul 7, 2020, 11:49:14 PM7/7/20
to Ansible Project
Facing the below error while logging as my user (mahesh) and performing the actions on service user (service).

ERROR:
fatal: [10.0.0.1]: UNREACHABLE! => {"changed": false, "msg": "Authentication failure.", "unreachable": true}

Tried:
- name: deploy elasticsearch
  hosts: all
  remote_user: mahesh
  become: yes
  become_user: service

Dick Visser

unread,
Jul 8, 2020, 1:24:28 AM7/8/20
to ansible...@googlegroups.com


--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f7490938-4830-453a-b6be-b4b4e93b0ec0o%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Mahesh N

unread,
Jul 8, 2020, 1:19:49 PM7/8/20
to Ansible Project
Able to figure it out, there is no fault in site.yml, but in vars file i have added ansible_user as my service user, so initially it's SSH as service user, which shouldn't be the case. 
Reply all
Reply to author
Forward
0 new messages