#playbook --- - name: paquets nécessaires apt: - name: recuperation dokuwiki-stable.tgz depuis machine depl get_url: url: http://depl/store/dokuwiki-stable.tgz dest: /tmp - name: Extraction archive unarchive: - name: stat rept stat: path: /mon/rept register: rept_stat - name: On renomme rept en nouveau command: mv /mon/rept /mon/nouveau when: rept_stat.stat.exists