upt playbook

This commit is contained in:
jaydee 2023-10-23 11:52:54 +02:00
parent 9bd6bc7b30
commit fd1776eb1c

View File

@ -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']