This commit is contained in:
jaydee
2023-12-09 15:50:11 +01:00
parent 572ba730fe
commit 1e56e04ed5
2 changed files with 12 additions and 9 deletions

View File

@ -20,6 +20,9 @@
- mailu2-webmail-1
- HomeAssistant
- mosquitto-mosquitto-1
- gitlab
- semaphore-app-1
- semaphore-db-1
tasks:
- name: Get ruleset
@ -58,7 +61,7 @@
# - 180
- name: Stop mailu containers
command: "docker pause {{ containers | join(' ') }}"
command: "docker stop {{ containers | join(' ') }}"
become: true
ignore_errors: true
when: inventory_hostname in groups['raspberry']

View File

@ -3,15 +3,15 @@
hosts: containers
gather_facts: false
tasks:
- include_tasks: stop_containers.yaml
name: Stop Containers
when: inventory_hostname in groups['raspberrypi5']
- name: Pause for 60 seconds
ansible.builtin.pause:
seconds: 60
# - include_tasks: stop_containers.yaml
# name: Stop Containers
# when: inventory_hostname in groups['raspberrypi5']
# - name: Pause for 60 seconds
# ansible.builtin.pause:
# seconds: 60
- include_tasks: sync_container_data.yaml
name: Sync Container Data
# - include_tasks: sync_container_data.yaml
# name: Sync Container Data
- include_tasks: reconfigure_nginx.yaml
name: Reconfigure nginx proxy manager
loop: