feat: remove Caddy network connection task from Seafile Ansible playbook
Some checks failed
Python Lint Check / check-python (push) Waiting to run
Ansible Lint Check / check-ansible (push) Failing after 15s
Nix Format Check / check-format (push) Has been cancelled

This commit is contained in:
Menno van Leeuwen 2025-03-17 13:46:45 +01:00
parent 15117e2356
commit 3a5056aa00
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -61,15 +61,6 @@
- .env.j2 - .env.j2
register: seafile_configs register: seafile_configs
- name: Ensure containers are on the caddy network
ansible.builtin.command: docker network connect caddy_default seafile
register: connect_network
changed_when: connect_network.rc == 0
failed_when:
- connect_network.rc != 0
- "'already exists' not in connect_network.stderr"
when: seafile_configs.changed
- name: Stop Seafile service - name: Stop Seafile service
ansible.builtin.command: docker compose -f "{{ seafile_service_dir }}/docker-compose.yml" down --remove-orphans ansible.builtin.command: docker compose -f "{{ seafile_service_dir }}/docker-compose.yml" down --remove-orphans
when: seafile_configs.changed when: seafile_configs.changed