--- - name: recuperer dokuwiki-stables.tgz depuis le machine depl get_url: url: http://depl/store/dokuwiki-stable.tgz dest: /tmp - name: extraction archive unarchive: src: /tmp/dokuwiki-stable.tgz dest: /var/www/html/ remote_src: yes - name: renommer repertoire stat: path: /var/www/html/dokuwiki-2024-02-06b register: doku #- name: renommer doku en nouveau si existe # command: mv /var/www/html/dokuwiki-2024-02-06b /var/www/html/doku #when: doku.stat.exists - name: donner les droits root au repertoire /var/www/html/doku file: path: /var/www/html/doku state: directory recurse: yes owner: www-data group: www-data - name: donner les droits a www-data pour le repertoire /var/www/html/doku/data file: path: /var/www/html/doku/data state: directory recurse: yes owner: www-data group: www-data - name: donner les droits a www-data pour le repertoire /var/www/html/doku/lib file: path: /var/www/html/doku/lib state: directory recurse: yes owner: www-data group: www-data - name: donner les droits a www-data pour le repertoire /var/www/html/doku/conf file: path: /var/www/html/doku/conf state: directory recurse: yes owner: www-data group: www-data