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
|
- include_tasks: sync_container_data.yaml
|
||||||
name: Sync Container Data
|
name: Sync Container Data
|
||||||
|
when: inventory_hostname == source_server
|
||||||
|
|
||||||
- include_tasks: reconfigure_nginx.yaml
|
- include_tasks: reconfigure_nginx.yaml
|
||||||
name: Reconfigure nginx proxy manager
|
name: Reconfigure nginx proxy manager
|
||||||
@ -40,7 +41,7 @@
|
|||||||
- kestra.sectorq.eu
|
- kestra.sectorq.eu
|
||||||
- auth.sectorq.eu
|
- auth.sectorq.eu
|
||||||
when: inventory_hostname == destination_server
|
when: inventory_hostname == destination_server
|
||||||
|
|
||||||
- name: Get relevant configs
|
- 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/*'
|
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
|
ignore_errors: true
|
||||||
|
@ -2,21 +2,21 @@
|
|||||||
- 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 == destination_server
|
|
||||||
- debug:
|
- debug:
|
||||||
msg: rsync -avh --delete /share/docker_data/{{ '{' }}{{ selected_containers }}{{ '}' }} root@{{ destination_server }}:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"
|
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:
|
- debug:
|
||||||
msg: rsync -avh --delete /share/docker_data/{{ selected_containers }} root@{{ destination_server }}:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"
|
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
|
- 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/{{ '{' }}{{ 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 == source_server and selected_containers|split(",")|length > 1
|
when: selected_containers|split(",")|length > 1
|
||||||
- name: Syncing all
|
- 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/{{ 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 == source_server and selected_containers|split(",")|length == 1
|
when: selected_containers|split(",")|length == 1
|
Loading…
x
Reference in New Issue
Block a user