Commit d3e704f61f56861947153c90245ba4dea259a76c

Authored by grouille
1 parent 89fe1d1d

Test

Showing 2 changed files with 1 additions and 15 deletions   Show diff stats
site/add.php
... ... @@ -43,8 +43,6 @@ session_start();
43 43 $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']."-".$_POST['version']." setup=".$setup."\n";
44 44 file_put_contents('upload/inventaire.ini', $ini);
45 45 setup($_POST['raspberry']);
46   - $cmd = "./cmd.sh";
47   - //$retour = system($cmd, $retval);
48 46 exec("super cmd.sh");
49 47 ?>
50 48 <div class="alert alert-success" role="alert">
... ...
site/reception.php
... ... @@ -52,19 +52,7 @@ if(isset($_POST[&#39;sensor&#39;]))
52 52 {
53 53 $message = "Upload du fichier réussi !";
54 54 $color = "alert-success";
55   - $cmd = "ansible-playbook ../Ansible/taskPing.yml -i upload/inventaire.ini";
56   - $retour = system($cmd, $retval);
57   - //$ansible = exec($cmd, $result);
58   - $message = $message." Retour : ".$retval."---".$retour;
59   - /*if($ansible!=NULL)
60   - {
61   - $message = $message." Ansible est lancé ! Retour : ".;
62   - }
63   - else
64   - {
65   - $message = $message." Echec du lancement d'Ansible !";
66   - $color = "alert-danger";
67   - }*/
  55 + exec("super cmd.sh");
68 56 }
69 57 else
70 58 {
... ...