ANSIBLE REBOOT ANY SERVER

root@localhost ~]# ansible 192.168.45.142 -a "/sbin/reboot"
Enter passphrase for key '/root/.ssh/id_rsa':
192.168.45.142 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: Shared connection to 192.168.45.142 closed.\r\n",
    "unreachable": true
}
[root@localhost ~]#

Comments

Popular posts from this blog

ansible redhat cluster qorum qdevice

PE 3.9.0 on centos 6

gfs2 cluster