--- # The app connects to `redis`, the alias the attach role adds, not the container name. - name: Attach Nextcloud to Valkey ansible.builtin.include_tasks: "{{ playbook_dir }}/../valkey/roles/attach/tasks/main.yaml" # The restart that joins Valkey to nextcloud_net is a handler, so flush it before the app starts or it fails on the first cache write. - name: Apply the Valkey network change before starting Nextcloud ansible.builtin.meta: flush_handlers