From 1edbdcadf60a765f38b1113068da89f7e1a909a4 Mon Sep 17 00:00:00 2001 From: gcolpart Date: Wed, 28 Jun 2017 22:32:31 +0200 Subject: [PATCH] =?UTF-8?q?mini-am=C3=A9lioration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoAnsible.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/HowtoAnsible.md b/HowtoAnsible.md index 13930be6..2b566306 100644 --- a/HowtoAnsible.md +++ b/HowtoAnsible.md @@ -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) ~~~