ansible/playbooks/sync_container_data.yaml

9 lines
684 B
YAML
Raw Normal View History

2023-12-06 15:19:27 +01:00
- name: Changing permission
2024-03-13 09:51:16 +01:00
ansible.builtin.shell: 'chown -R root. /share/docker_data/'
2023-12-06 15:19:27 +01:00
become: true
2024-04-15 07:54:08 +02:00
when: inventory_hostname in groups['raspberrypi5']
2023-12-06 15:19:27 +01:00
- name: Syncing all
2024-06-03 00:51:49 +02:00
ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{kestra,authentik,mailu2,ha,gitlab,semaphore,webhub,nginx,heimdall} root@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
2024-03-13 09:51:16 +01:00
#ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,webhub,nginx,heimdall} root@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
2023-12-06 15:19:27 +01:00
#ansible.builtin.shell: 'ls -la'
when: inventory_hostname in groups['nas']