Skip to content

Instantly share code, notes, and snippets.

@amaurybsouza
Created February 24, 2022 00:25
Show Gist options
  • Save amaurybsouza/ef877c2c2500a8e72ed0ad7847b0ee90 to your computer and use it in GitHub Desktop.
Save amaurybsouza/ef877c2c2500a8e72ed0ad7847b0ee90 to your computer and use it in GitHub Desktop.
ansible_adhoc
$ ansible all -m ping
localhosts | SUCCESS => {
"changed": false,
"ping": "pong"
}
localhost | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python3"
},
"changed": false,
"ping": "pong"
}
elliot01 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host 45.94.149.182 port 22: Connection timed out",
"unreachable": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment