--- # Runs in the roles phase, after the register include in pre_tasks created the network. - name: Attach Yamtrack to Valkey ansible.builtin.include_tasks: "{{ playbook_dir }}/../valkey/roles/attach/tasks/main.yaml" # The restart is a handler, so it would run after the yamtrack role starts the app. # Flushing applies the new drop-in before the app starts; later runs are a no-op. - name: Apply the Valkey network change before starting Yamtrack ansible.builtin.meta: flush_handlers