2024-11-14 11:13:49 +01:00
|
|
|
---
|
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-11-14 12:13:40 +01:00
|
|
|
ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/\{{{ selected_containers }}\} root@{{ selected_server }}:/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']
|