Commit 7a00745c8406758c2571dde780b58cfc509df5a6

Authored by Thorsieger
1 parent 3cc98bda

envoi fichier temps

Showing 1 changed file with 10 additions and 1 deletions   Show diff stats
Ansible/roles/arduino/tasks/main.yml
... ... @@ -8,6 +8,15 @@
8 8 mode: '0644'
9 9 when: ordre == 0
10 10  
  11 + - name: "envoyer du fichier temps.txt"
  12 + copy:
  13 + src: ../../../../site/upload/temps.txt
  14 + dest: /home/pi/capteur{{capteur}}/temps.txt
  15 + owner: root
  16 + group: root
  17 + mode: '0644'
  18 + when: ordre == 0
  19 +
11 20 - name: "execution du script lancer"
12 21 shell: /home/pi/capteur{{capteur}}/lancer.sh
13 22 when: ordre == 0
... ... @@ -19,5 +28,5 @@
19 28 - name: "execution du script"
20 29 file:
21 30 path: /home/pi/capteur{{capteur}}
22   - state: absent
  31 + state: absent
23 32 when: ordre == 2
24 33 \ No newline at end of file
... ...