This commit is contained in:
jaydee 2024-03-06 10:38:11 +01:00
parent 22c88214bd
commit b0495f399a

View File

@ -3,20 +3,16 @@
hosts: containers hosts: containers
gather_facts: false gather_facts: false
tasks: tasks:
# - include_tasks: stop_containers.yaml - include_tasks: stop_containers.yaml
# name: Stop Containers name: Stop Containers
# when: inventory_hostname in groups['raspberrypi5'] when: inventory_hostname in groups['raspberrypi5']
# - name: Pause for 60 seconds - name: Pause for 60 seconds
# ansible.builtin.pause: ansible.builtin.pause:
# seconds: 60 seconds: 60
- include_tasks: sync_container_data.yaml
name: Sync Container Data
# - include_tasks: sync_container_data.yaml
# name: Sync Container Data
- name: Syncing all
ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,ha,gitlab,semaphore,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,ha,gitlab} root@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
#ansible.builtin.shell: 'ls -la'
when: inventory_hostname in groups['nas']
- include_tasks: reconfigure_nginx.yaml - include_tasks: reconfigure_nginx.yaml
name: Reconfigure nginx proxy manager name: Reconfigure nginx proxy manager
loop: loop: