- name: Create archive of /var/www
command: tar -czvf /tmp/varwww.tgz /var/www
- name: Download the archive to local machine
fetch:
src: /tmp/varwww.tgz
dest: ./varwww_{{ inventory_hostname }}.tgz
[file-name 000014_2025-02-14_12-48-08.txt]