Commit ef5cf8ee95af05a66107e30b35557f95ef71da1a
1 parent
271d90ac
Test
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
site/add.php
... | ... | @@ -40,10 +40,10 @@ session_start(); |
40 | 40 | { |
41 | 41 | $ini = $nucleo; |
42 | 42 | } |
43 | - $ini = $ini.$_POST['raspberry']." capteur=".$_POST['numero']." setup=".$setup."\n"; | |
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 = "ansible-playbook ../Ansible/MainTask.yml -i upload/inventaire.ini"; | |
46 | + $cmd = "./cmd.sh"; | |
47 | 47 | $retour = system($cmd, $retval); |
48 | 48 | $message = $message." Retour : ".$retval."---".$retour; |
49 | 49 | ?> | ... | ... |
site/reponse.php