From a54f6cb12a5c5713dcd99b46b86558e51909b08f Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 29 Aug 2023 14:54:06 +0200 Subject: [PATCH] upt playbook --- playbooks/sync_mailu.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/playbooks/sync_mailu.yaml b/playbooks/sync_mailu.yaml index f27aa28..e8d16a2 100644 --- a/playbooks/sync_mailu.yaml +++ b/playbooks/sync_mailu.yaml @@ -104,8 +104,14 @@ ansible.builtin.shell: 'scp /share/Data/dockers-{{ ansible_date_time.date }}.tar.gz admin@192.168.77.246:/tmp/' when: inventory_hostname in groups['nas'] - - name: Unpack archive - ansible.builtin.shell: 'tar -xzvf /tmp/dockers-{{ ansible_date_time.date }}.tar.gz -C /' + #- name: Unpack archive + # ansible.builtin.shell: 'tar -xzvf /tmp/dockers-{{ ansible_date_time.date }}.tar.gz -C /' + # become: true + # when: inventory_hostname in groups['raspberry'] + + - name: Extract become: true - when: inventory_hostname in groups['raspberry'] + ansible.builtin.unarchive: + src: /tmp/dockers-{{ ansible_date_time.date }}.tar.gz + dest: / \ No newline at end of file