Commit 2231d3324c7b8ebeb266ebc8f06c9a9d6b539382
1 parent
53b1fa7e
lancer script shell fonctionnel
Showing
3 changed files
with
53 additions
and
6 deletions
Show diff stats
Ansible/playbooktest.yml
1 | --- | 1 | --- |
2 | - name: Wait until the file ./inventaire.ini | 2 | - name: Wait until the file ./inventaire.ini |
3 | - hosts: localhost | 3 | + hosts: all |
4 | + remote_user: pi | ||
5 | + become: yes | ||
4 | tasks: | 6 | tasks: |
5 | - - unarchive: | ||
6 | - src: http://serveur-etu.polytech-lille.fr/~grouille/PROJET/fichiersRPI/fichiersRPI.zip | ||
7 | - dest: /home/pifou/capteur1/ | ||
8 | - remote_src: yes | 7 | + - shell: /home/pi/capteur3/lancer.sh |
9 | 8 | ||
10 | 9 | ||
11 | 10 |
Ansible/roles/arduino/tasks/main.yml
@@ -3,4 +3,7 @@ | @@ -3,4 +3,7 @@ | ||
3 | get_url: | 3 | get_url: |
4 | url: http://serveur-etu.polytech-lille.fr/~grouille/PROJET/upload/binaire.c | 4 | url: http://serveur-etu.polytech-lille.fr/~grouille/PROJET/upload/binaire.c |
5 | dest: /home/pi/capteur{{capteur}}/binaire.c | 5 | dest: /home/pi/capteur{{capteur}}/binaire.c |
6 | - mode: '0644' | ||
7 | \ No newline at end of file | 6 | \ No newline at end of file |
7 | + mode: '0644' | ||
8 | + | ||
9 | +- name: "execution du script" | ||
10 | + shell: /home/pi/capteur{{capteur}}/lancer.sh | ||
8 | \ No newline at end of file | 11 | \ No newline at end of file |
@@ -0,0 +1,45 @@ | @@ -0,0 +1,45 @@ | ||
1 | +--- | ||
2 | +- name: "Copy file for proxy setup" | ||
3 | + copy: | ||
4 | + src: ../files/proxy.conf | ||
5 | + dest: /etc/apt/apt.conf.d/proxy.conf | ||
6 | + owner: root | ||
7 | + group: root | ||
8 | + mode: '0644' | ||
9 | + | ||
10 | +- name: "verif install python3" | ||
11 | + apt: | ||
12 | + name: python3 | ||
13 | + state: present | ||
14 | + | ||
15 | +- name: "verif install python3-pip" | ||
16 | + apt: | ||
17 | + name: python3-pip | ||
18 | + state: present | ||
19 | + | ||
20 | + | ||
21 | +- name: "verif install wiringpi" | ||
22 | + apt: | ||
23 | + name: wiringpi | ||
24 | + state: present | ||
25 | + | ||
26 | +- name: "verif install avrdude" | ||
27 | + apt: | ||
28 | + name: avrdude | ||
29 | + state: present | ||
30 | + | ||
31 | +- name: "verif install lxml pkg" | ||
32 | + pip: | ||
33 | + executable: pip3 | ||
34 | + name: lxml | ||
35 | + | ||
36 | +- name: "verif install requests pkg" | ||
37 | + pip: | ||
38 | + executable: pip3 | ||
39 | + name: requests | ||
40 | + | ||
41 | +- name: "verif install pyserial pkg" | ||
42 | + pip: | ||
43 | + executable: pip3 | ||
44 | + name: pyserial | ||
45 | + | ||
0 | \ No newline at end of file | 46 | \ No newline at end of file |