From f97919485c9d884ed348b78d6654237969c0a886 Mon Sep 17 00:00:00 2001 From: grouille Date: Wed, 25 Mar 2020 15:04:36 +0100 Subject: [PATCH] Test --- site/reception.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/reception.php b/site/reception.php index 62d4734..b85e652 100644 --- a/site/reception.php +++ b/site/reception.php @@ -53,9 +53,9 @@ if(isset($_POST['sensor'])) $message = "Upload du fichier réussi !"; $color = "alert-success"; $cmd = "ansible-playbook ../Ansible/sendFile.yml -i upload/inventaire.ini"; - system($cmd, $retval); + $retour = system($cmd, $retval); //$ansible = exec($cmd, $result); - $message = $message." Retour : ".$retval; + $message = $message." Retour : ".$retval."---".$retour; /*if($ansible!=NULL) { $message = $message." Ansible est lancé ! Retour : ".; -- libgit2 0.21.2