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.
On Tuesday, July 7, 2020 at 8:49:14 PM UTC-7, Mahesh N wrote:
>
> 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
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/019018a9-daca-4b69-99a3-b331632b9432o%40googlegroups.com.