diff --git a/site/add.php b/site/add.php index 7885387..6f95a4e 100644 --- a/site/add.php +++ b/site/add.php @@ -40,10 +40,10 @@ session_start(); { $ini = $nucleo; } - $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']." setup=".$setup."\n"; + $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']."'".$_POST['version']." setup=".$setup."\n"; file_put_contents('upload/inventaire.ini', $ini); setup($_POST['raspberry']); - $cmd = "ansible-playbook ../Ansible/MainTask.yml -i upload/inventaire.ini"; + $cmd = "./cmd.sh"; $retour = system($cmd, $retval); $message = $message." Retour : ".$retval."---".$retour; ?> diff --git a/site/reponse.php b/site/reponse.php index 2074823..38ccfd3 100644 --- a/site/reponse.php +++ b/site/reponse.php @@ -1,5 +1,5 @@
-
+