Skip to content

Commit a105b42

Browse files
Create staging directories
1 parent 9910161 commit a105b42

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

powerdns_setup.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,17 @@
265265
- hostvars[inventory_hostname]['health_check_enabled'] | default(false)
266266

267267
# Phase 3: PM2 Migration Path - Stage files before stopping PM2
268-
- name: MIGRATION - Create staging directory for PM2 migration
268+
- name: MIGRATION - Create staging directories for PM2 migration
269269
ansible.builtin.file:
270-
path: /opt/healthchecker/staging
270+
path: "{{ item }}"
271271
state: directory
272272
owner: healthcheck
273273
group: healthcheck
274274
mode: "0755"
275+
loop:
276+
- /opt/healthchecker/staging
277+
- /opt/healthchecker/staging/routes
278+
- /opt/healthchecker/staging/bin
275279
when:
276280
- hostvars[inventory_hostname]['health_check_enabled'] | default(false)
277281
- needs_pm2_migration | default(false)

0 commit comments

Comments
 (0)