Dear All,
I am receiving this error when I tried to execute server.yml file. Anyone please suggest appropriate changes that i need to do in inventory file, host file or server.yml.
I tried to execute this playbook against local-host.
administrator@JAVALAB01-43:~/nephele/ansible$ ansible-playbook -i inventory server.yml
PLAY [servers] *****************************************************************
TASK [Gathering Facts] *********************************************************
fatal: [localhost]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: root@localhost: Permission denied (publickey,password).”, “unreachable”: true}
PLAY RECAP *********************************************************************
localhost : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
Regards,
Ashwini Kumar Jha