fix(reverse_proxy,netbird_coordinator): create scaffold dirs in check mode
Add check_mode: false to the state:directory base_dir tasks so that 'make check' on a brand-new compose service role creates the scaffold during --check and the rest of the dry-run (templates + docker_compose_v2 up) can be evaluated instead of failing on a missing project_src. The directive is inert under a normal converge (incl. Molecule + its tagged second converge), so role tests are unchanged. Consumes the 2026-06-16 signal in docs/FRICTION.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b0c0150db2
commit
8f1c7d47ec
2 changed files with 6 additions and 0 deletions
|
|
@ -4,6 +4,8 @@
|
||||||
path: "{{ netbird_coordinator__base_dir }}"
|
path: "{{ netbird_coordinator__base_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0750"
|
mode: "0750"
|
||||||
|
# create the scaffold even in --check so dry-run can evaluate templates + compose (idempotent mkdir)
|
||||||
|
check_mode: false
|
||||||
tags: [config]
|
tags: [config]
|
||||||
|
|
||||||
- name: Render the combined server config
|
- name: Render the combined server config
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@
|
||||||
path: "{{ reverse_proxy__base_dir }}"
|
path: "{{ reverse_proxy__base_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0750"
|
mode: "0750"
|
||||||
|
# create the scaffold even in --check so dry-run can evaluate templates + compose (idempotent mkdir)
|
||||||
|
check_mode: false
|
||||||
tags: [config]
|
tags: [config]
|
||||||
|
|
||||||
- name: Ensure the Caddy config directory exists
|
- name: Ensure the Caddy config directory exists
|
||||||
|
|
@ -11,6 +13,8 @@
|
||||||
path: "{{ reverse_proxy__base_dir }}/caddy"
|
path: "{{ reverse_proxy__base_dir }}/caddy"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0750"
|
mode: "0750"
|
||||||
|
# create the scaffold even in --check so dry-run can evaluate templates + compose (idempotent mkdir)
|
||||||
|
check_mode: false
|
||||||
tags: [config]
|
tags: [config]
|
||||||
|
|
||||||
# Render into a directory that is bind-mounted whole (./caddy -> /etc/caddy). Mounting
|
# Render into a directory that is bind-mounted whole (./caddy -> /etc/caddy). Mounting
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue