Commit 7a00745c8406758c2571dde780b58cfc509df5a6
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,6 +8,15 @@ | ||
8 | mode: '0644' | 8 | mode: '0644' |
9 | when: ordre == 0 | 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 | - name: "execution du script lancer" | 20 | - name: "execution du script lancer" |
12 | shell: /home/pi/capteur{{capteur}}/lancer.sh | 21 | shell: /home/pi/capteur{{capteur}}/lancer.sh |
13 | when: ordre == 0 | 22 | when: ordre == 0 |
@@ -19,5 +28,5 @@ | @@ -19,5 +28,5 @@ | ||
19 | - name: "execution du script" | 28 | - name: "execution du script" |
20 | file: | 29 | file: |
21 | path: /home/pi/capteur{{capteur}} | 30 | path: /home/pi/capteur{{capteur}} |
22 | - state: absent | 31 | + state: absent |
23 | when: ordre == 2 | 32 | when: ordre == 2 |
24 | \ No newline at end of file | 33 | \ No newline at end of file |