Comment blocks now stay within three lines and explain only the non-obvious. Long histories, include examples, and commented-out code are gone. No task, key, or value changed; the only data change is comment text inside the generated unit files.
12 lines
593 B
YAML
12 lines
593 B
YAML
---
|
|
|
|
# Runs in the roles phase, after the register include in pre_tasks created the network.
|
|
- name: Attach Wiki.js to Postgres
|
|
ansible.builtin.include_tasks: "{{ playbook_dir }}/../postgres/roles/attach/tasks/main.yaml"
|
|
|
|
# The restart is a handler, so it would run after the wikijs role starts the app.
|
|
# Flushing applies the new drop-in before the app starts; later runs are a no-op.
|
|
# Flush also applies Caddy's pending restart, which is right: Caddy must join the network to proxy.
|
|
- name: Apply the Postgres network change before starting Wiki.js
|
|
ansible.builtin.meta: flush_handlers
|