Commit e496be4c0cf30698c046ca7f31f1a3f469d02a4a
1 parent
233e54e7
suppression ds telechargement pour passer a des copy
Showing
3 changed files
with
10 additions
and
8 deletions
Show diff stats
Ansible/MainTask.yml
... | ... | @@ -13,16 +13,16 @@ |
13 | 13 | roles: |
14 | 14 | - role: nucleo_Setup |
15 | 15 | |
16 | -- name: "Déploiement de code pour Arduino" | |
16 | +- name: "Deploiement de code pour Arduino" | |
17 | 17 | hosts: Arduino |
18 | 18 | remote_user: pi |
19 | 19 | become: yes |
20 | 20 | roles: |
21 | 21 | - role: arduino |
22 | 22 | |
23 | -- name: "Déploiement de code pour Nucleo" | |
23 | +- name: "Deploiement de code pour Nucleo" | |
24 | 24 | hosts: Nucleo |
25 | 25 | remote_user: pi |
26 | 26 | become: yes |
27 | 27 | roles: |
28 | - - role: nucleo | |
29 | 28 | \ No newline at end of file |
29 | + - role: nucleo | ... | ... |
Ansible/roles/arduino/tasks/main.yml
1 | 1 | --- |
2 | 2 | - name: "envoyer du fichier binaire.c" |
3 | - get_url: | |
4 | - url: http://projet-p10.plil.fr/IMA3_P10/site/upload/main.c | |
3 | + copy: | |
4 | + src: ../../../../site/upload/main.c | |
5 | 5 | dest: /home/pi/capteur{{capteur}}/main.c |
6 | + owner: root | |
7 | + group: root | |
6 | 8 | mode: '0644' |
7 | 9 | |
10 | + | |
8 | 11 | - name: "execution du script" |
9 | 12 | shell: /home/pi/capteur{{capteur}}/lancer.sh | ... | ... |
Ansible/roles/arduino_Setup/tasks/main.yml
... | ... | @@ -8,8 +8,7 @@ |
8 | 8 | path: /home/pi/capteur{{capteur}} |
9 | 9 | state: directory |
10 | 10 | |
11 | -- name: "Download and unzip files" | |
11 | +- name: "Copy and unzip files" | |
12 | 12 | unarchive: |
13 | - src: http://projet-p10.plil.fr/IMA3_P10/site/fichiersRPI/fichiersRPI.zip | |
13 | + src: ../../../../site/fichiersRPI/fichiersRPI.zip | |
14 | 14 | dest: /home/pi/capteur{{capteur}} |
15 | - remote_src: yes | ... | ... |