Hi Team,
Am trying to run the shutdown command in my ansible master server using the below command
[tester@ansi ~]$ sudo ansible Total -m shell -a “/usr/sbin/shutdown -h now”
got the error message as
server 1 | UNREACHABLE! => {
“changed”: false,
“msg”: “Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n”,
“unreachable”: true
but when i use the
ansible Total -a “/bin/date”
am able to get the result kindly assit