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
0568c30c86
commit
389ae647de
@ -27,6 +27,7 @@
|
||||
|
||||
- include_tasks: sync_container_data.yaml
|
||||
name: Sync Container Data
|
||||
when: inventory_hostname == source_server
|
||||
|
||||
- include_tasks: reconfigure_nginx.yaml
|
||||
name: Reconfigure nginx proxy manager
|
||||
@ -40,7 +41,7 @@
|
||||
- kestra.sectorq.eu
|
||||
- auth.sectorq.eu
|
||||
when: inventory_hostname == destination_server
|
||||
|
||||
|
||||
- name: Get relevant configs
|
||||
ansible.builtin.shell: 'egrep -l "# kestra.sectorq.eu|# auth.sectorq.eu|# ha.sectorq.eu|# pw.sectorq.eu|# semaphore.sectorq.eu|# sectorq.eu|# gitlab.sectorq.eu|# ha.sectorq.eu" /share/docker_data/nginx/data/nginx/proxy_host/*'
|
||||
ignore_errors: true
|
||||
|
@ -2,21 +2,21 @@
|
||||
- name: Changing permission
|
||||
ansible.builtin.shell: 'chown -R root. /share/docker_data/'
|
||||
become: true
|
||||
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 and selected_containers|split(",")|length > 1
|
||||
when: selected_containers|split(",")|length > 1
|
||||
- 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 and selected_containers|split(",")|length == 1
|
||||
when: selected_containers|split(",")|length == 1
|
||||
|
||||
- name: Syncing all
|
||||
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: 'ls -la'
|
||||
when: inventory_hostname == source_server and selected_containers|split(",")|length > 1
|
||||
when: selected_containers|split(",")|length > 1
|
||||
- name: Syncing all
|
||||
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: 'ls -la'
|
||||
when: inventory_hostname == source_server and selected_containers|split(",")|length == 1
|
||||
when: selected_containers|split(",")|length == 1
|
Loading…
x
Reference in New Issue
Block a user