1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| $ ansible all -m ping 10.4.7.136 | SUCCESS => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "changed": false, "ping": "pong" } 10.4.7.128 | SUCCESS => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "changed": false, "ping": "pong" } 10.4.7.129 | SUCCESS => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "changed": false, "ping": "pong" }
$ ansible data -m command -a 'hostname -I' 10.4.7.136 | CHANGED | rc=0 >> 10.4.7.136 10.4.7.128 | CHANGED | rc=0 >> 10.4.7.128
$ ansible 10.4.7.136 -m command -a 'hostname' 10.4.7.136 | CHANGED | rc=0 >> linux136
|