--- - debug: var: doku_path - name: make dokuwiki archive community.general.archive: dest: "{{ archive }}" path: - "{{ doku_path }}conf" - "{{ doku_path }}data" - "{{ doku_path }}lib/plugins" - name: copy archive to controller fetch: src: "{{ archive }}" dest: "{{ output }}" flat: yes - name: remove remote archive file: path: "{{ archive }}" state: absent