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