upt playbook

This commit is contained in:
jaydee 2023-10-23 11:29:07 +02:00
parent 24036d3d8d
commit 4322856559
2 changed files with 8 additions and 5 deletions

View File

@ -65,6 +65,8 @@ datacenter:
ansible_python_interpreter: /usr/bin/python
ansible_user: admin
ansible_pass: l4c1j4yd33Du5lo
ansible_become_user: admin
ansible_become_password: l4c1j4yd33Du5lo
nas:
hosts:
192.168.77.106:

View File

@ -2,10 +2,11 @@
name: Stop mailu
ignore_unreachable: false
tasks:
- name: Extract
- name: fix permissions
file:
path: /share/docker_data/mailu2/
owner: admin
group: administrators
recurse: yes
become: true
ansible.builtin.unarchive:
src: /tmp/dockers-{{ ansible_date_time.date }}.tar.gz
dest: /
remote_src: yes
when: inventory_hostname in groups['raspberry']