Commit 6b8856d8e0beec0e93295c602d3d0b61b62e93a4
1 parent
34837f0f
ajout autre ordres
Showing
2 changed files
with
13 additions
and
2 deletions
Show diff stats
Ansible/roles/arduino/tasks/main.yml
... | ... | @@ -6,7 +6,18 @@ |
6 | 6 | owner: root |
7 | 7 | group: root |
8 | 8 | mode: '0644' |
9 | + when: ordre == 0 | |
9 | 10 | |
11 | +- name: "execution du script lancer" | |
12 | + shell: /home/pi/capteur{{capteur}}/lancer.sh | |
13 | + when: ordre == 0 | |
14 | + | |
15 | +- name: "execution du script stop" | |
16 | + shell: /home/pi/capteur{{capteur}}/stop.sh | |
17 | + when: ordre == 1 | |
10 | 18 | |
11 | 19 | - name: "execution du script" |
12 | - shell: /home/pi/capteur{{capteur}}/lancer.sh | |
20 | + file: | |
21 | + path: /home/pi/capteur{{capteur}} | |
22 | + state: absent | |
23 | + when: ordre == 2 | |
13 | 24 | \ No newline at end of file | ... | ... |
Ansible/roles/arduino_Setup/tasks/main.yml