22
0
Fork 0

mini-amélioration

This commit is contained in:
gcolpart 2017-06-28 22:32:31 +02:00
parent 56dd0bf0d2
commit 1edbdcadf6
1 changed files with 4 additions and 2 deletions

View File

@ -56,10 +56,12 @@ localhost | SUCCESS => {
"ping": "pong"
}
$ echo HOSTNAME >> ~/.ansible/hosts && ssh-copy-id HOSTNAME && ansible HOSTNAME -i $HOME/.ansible/hosts -m ping --one-line
$ echo HOSTNAME >> ~/.ansible/hosts
$ ssh-copy-id HOSTNAME
$ ansible HOSTNAME -i $HOME/.ansible/hosts -m ping --one-line --forks 1
HOSTNAME | SUCCESS => {"changed": false, "ping": "pong"}
$ ansible HOSTNAME -m command --args "date"
$ ansible "HOST*" -m command --args "date"
HOSTNAME | SUCCESS | rc=0 >>
jeudi 26 mai 2016, 23:16:01 (UTC+0200)
~~~