Fix Molecule default scenario tests
Some checks failed
Test / Lint (pull_request) Successful in 16s
Test / Test (pull_request) Failing after 2m12s

This commit is contained in:
Daniel Akulenok
2026-02-08 20:43:56 +01:00
parent a4f06d3daf
commit 07f84b7c96
4 changed files with 57 additions and 9 deletions

View File

@@ -18,6 +18,17 @@
mode: "0750"
when: bind9_backup_config is defined and bind9_backup_config | bool
- name: Ensure logging directory exists if defined
ansible.builtin.file:
path: "{{ bind9_log_dir }}"
state: directory
owner: bind
group: bind
mode: "0750"
when:
- bind9_log_dir is defined
- bind9_log_dir is not none
- name: Deploy and Validate Configuration
tags:
- bind9
@@ -34,6 +45,7 @@
owner: root
group: bind
mode: "0640"
when: bind9_backup_config | bool
changed_when: false
failed_when: false # It's okay if the file doesn't exist yet
loop: "{{ bind9_config }}"