Commit f97919485c9d884ed348b78d6654237969c0a886

Authored by grouille
1 parent 738e947e

Test

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
site/reception.php
... ... @@ -53,9 +53,9 @@ if(isset($_POST['sensor']))
53 53 $message = "Upload du fichier réussi !";
54 54 $color = "alert-success";
55 55 $cmd = "ansible-playbook ../Ansible/sendFile.yml -i upload/inventaire.ini";
56   - system($cmd, $retval);
  56 + $retour = system($cmd, $retval);
57 57 //$ansible = exec($cmd, $result);
58   - $message = $message." Retour : ".$retval;
  58 + $message = $message." Retour : ".$retval."---".$retour;
59 59 /*if($ansible!=NULL)
60 60 {
61 61 $message = $message." Ansible est lancé ! Retour : ".;
... ...