main.yml 1.05 KB
---
- name: "Copy file for proxy setup"
  copy:
    src: ../files/proxy.conf
    dest: /etc/apt/apt.conf.d/proxy.conf
    owner: root
    group: root
    mode: '0644'

- name: "verif install python3"
  apt:
    name: python3
    state: present

- name: "verif install python3-pip"
  apt:
    name: python3-pip
    state: present

- name: "verif install minicom"
  apt:
    name: minicom
    state: present

- name: "verif install wiringpi"
  apt:
    name: wiringpi
    state: present

- name: "verif install avrdude"
  apt:
    name: avrdude
    state: present

- name: "verif install lxml pkg"
  pip:
     executable: pip3
     name: lxml

- name: "verif install requests pkg"
  pip:
     executable: pip3
     name: requests

- name: "verif install pyserial pkg"
  pip:
     executable: pip3
     name: pyserial
     
- name: "Download and unzip files"
  unarchive:
     src: http://serveur-etu.polytech-lille.fr/~grouille/PROJET/fichiersRPI/fichiersRPI.zip
     dest: /home/pi/
     remote_src: yes
  
- name: "Lancement script setup"
  shell: /home/pi/fichiersRPI/toto.sh