From fd1776eb1c8010d6e25587f3c113f0e25464cf6d Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 23 Oct 2023 11:52:54 +0200 Subject: [PATCH] upt playbook --- playbooks/sync_mailu.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/playbooks/sync_mailu.yaml b/playbooks/sync_mailu.yaml index 9bd5f09..c3ba4a7 100644 --- a/playbooks/sync_mailu.yaml +++ b/playbooks/sync_mailu.yaml @@ -126,9 +126,16 @@ # ansible.builtin.shell: 'tar -xzvf /tmp/dockers-{{ ansible_date_time.date }}.tar.gz -C /' # become: true # when: inventory_hostname in groups['raspberry'] - + - name: fix permissions + file: + path: /share/docker_data/mailu2/ + owner: admin + group: administrators + recurse: yes + become: yes + when: inventory_hostname in groups['raspberry'] - name: Extract - become: true + become: yes ansible.builtin.unarchive: src: /tmp/{{ arch_name }}-{{ ansible_date_time.date }}.tar.gz dest: / @@ -142,5 +149,5 @@ owner: admin group: administrators recurse: yes - become: true + become: yes when: inventory_hostname in groups['raspberry'] \ No newline at end of file