Commit 6b8856d8e0beec0e93295c602d3d0b61b62e93a4

Authored by Thorsieger
1 parent 34837f0f

ajout autre ordres

Ansible/roles/arduino/tasks/main.yml
@@ -6,7 +6,18 @@ @@ -6,7 +6,18 @@
6 owner: root 6 owner: root
7 group: root 7 group: root
8 mode: '0644' 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 - name: "execution du script" 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 \ No newline at end of file 24 \ No newline at end of file
Ansible/roles/arduino_Setup/tasks/main.yml
@@ -15,4 +15,4 @@ @@ -15,4 +15,4 @@
15 mode: "0755" 15 mode: "0755"
16 16
17 - name: "execution du script de gestion des ports" 17 - name: "execution du script de gestion des ports"
18 - shell: /home/pi/capteur{{capteur}}/port.sh 18 - shell: /home/pi/capteur{{capteur}}/port.sh
  19 + shell: /home/pi/capteur{{capteur}}/port.sh
19 \ No newline at end of file 20 \ No newline at end of file