--- - name: install.yml hosts: glpi become: yes tasks: - name: 1. Telechargement de l'archive de glpi 10.0.10 get_url: url: http://depl.sio.lan/store/glpi-10.0.10.tgz dest: /tmp - name: 2. Extraire glpi 10.0.10.tgz vers /tmp/ ansible.builtin.unarchive: src: /tmp/glpi-10.0.10.tgz dest: /var/www/html/ - name: 3. Changer propritaire group et permissions file: path: /var/www/html/doku owner: www-data group: www-data mode: '0755' recurse: yes notify: 4. redemarrer apache2 handlers: - name: 4. redemarrer apache2 service: name: apache2 state: restarted