2023-12-06 15:19:27 +01:00
|
|
|
- name: Changing permission
|
|
|
|
ansible.builtin.shell: 'chown -R admin. /share/docker_data/'
|
|
|
|
become: true
|
|
|
|
when: inventory_hostname in groups['raspberry'] or inventory_hostname in groups['raspberrypi5']
|
|
|
|
- name: Syncing all
|
2023-12-09 20:53:51 +01:00
|
|
|
ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,ha,gitlab,semaphore,webhub,nginx,heimdall} admin@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
|
|
|
|
#ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,webhub,nginx,heimdall} admin@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']
|