Created
June 12, 2018 09:35
-
-
Save iamgini/4398cee36c0ba3f6fc6c5120a7e8e534 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ansible-box ~]# ansible all -i mylist -m command -a "uptime" | |
box2 | SUCCESS | rc=0 >> | |
07:15:49 up 1:12, 2 users, load average: 0.00, 0.00, 0.00 | |
box1 | SUCCESS | rc=0 >> | |
07:15:49 up 15 min, 2 users, load average: 0.00, 0.00, 0.00 | |
[root@ansible-box ~]# ansible all -i mylist -m command -a "id" | |
box2 | SUCCESS | rc=0 >> | |
uid=0(root) gid=0(root) groups=0(root) | |
box1 | SUCCESS | rc=0 >> | |
uid=0(root) gid=0(root) groups=0(root) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment