Read these docs and make sure you understand them:
https://docs.ansible.com/ansible/latest/user_guide/connection_details.html
https://docs.ansible.com/ansible/latest/user_guide/become.html
On Wed, 8 Jul 2020 at 05:49, Mahesh N wrote:
> Facing the below error while logging as my user
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: