mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
bitwarden
This commit is contained in:
parent
8729da7122
commit
2e172df934
@ -2,9 +2,13 @@
|
|||||||
- name: Changing permission
|
- name: Changing permission
|
||||||
ansible.builtin.shell: 'chown -R root. /share/docker_data/'
|
ansible.builtin.shell: 'chown -R root. /share/docker_data/'
|
||||||
become: true
|
become: true
|
||||||
when: inventory_hostname in groups['raspberrypi5']
|
when: inventory_hostname == destination_server
|
||||||
|
- debug:
|
||||||
|
msg: 'rsync -avh --delete /share/docker_data/\{{{ selected_containers }}\} root@{{ destination_server }}:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
|
||||||
|
when: inventory_hostname == source_server
|
||||||
|
|
||||||
- name: Syncing all
|
- name: Syncing all
|
||||||
ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/\{{{ selected_containers }}\} root@{{ selected_server }}:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
|
ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/\{{{ selected_containers }}\} root@{{ destination_server }}:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
|
||||||
#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/*"'
|
#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/*"'
|
||||||
#ansible.builtin.shell: 'ls -la'
|
#ansible.builtin.shell: 'ls -la'
|
||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname == source_server
|
Loading…
x
Reference in New Issue
Block a user