ansible/playbooks/sync_mailu2_data.yaml

14 lines
675 B
YAML
Raw Normal View History

2023-11-01 19:42:41 +01:00
- hosts: containers
2023-09-27 07:56:54 +02:00
name: Sync mailu
ignore_unreachable: false
tasks:
2023-11-01 19:42:41 +01:00
- name: Syncing mailu
ansible.builtin.shell: 'chown -R admin. /share/docker_data/mailu2'
become: true
2023-12-05 18:06:22 +01:00
when: inventory_hostname in groups['raspberry'] or inventory_hostname in groups['raspberrypi5']
2023-09-27 07:56:54 +02:00
- name: Syncing mailu
ansible.builtin.shell: 'rsync -ra /share/docker_data/mailu2/* admin@192.168.77.246:/share/docker_data/mailu2'
2023-12-05 12:21:17 +01:00
when: inventory_hostname in groups['nas']
- name: Syncing mailu
ansible.builtin.shell: 'rsync -ra /share/docker_data/mailu2/* admin@192.168.77.238:/share/docker_data/mailu2'
2023-09-27 07:56:54 +02:00
when: inventory_hostname in groups['nas']