From 17a991868585f064428d2dd8f50785e515ebf82b Mon Sep 17 00:00:00 2001 From: Daniel Akulenok Date: Wed, 28 Jan 2026 23:15:23 +0100 Subject: [PATCH] fix: resolve yamllint errors - Fix line length in meta/argument_specs.yml (wrap long description) - Remove extra blank lines in molecule/default/collections.yml - Fix line lengths in tasks/main.yml (wrap long messages) - Remove trailing spaces from tasks/main.yml - Ensure all YAML files pass yamllint with relaxed profile --- meta/argument_specs.yml | 3 ++- molecule/default/collections.yml | 1 - tasks/main.yml | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/meta/argument_specs.yml b/meta/argument_specs.yml index fac379f..69ccf1b 100644 --- a/meta/argument_specs.yml +++ b/meta/argument_specs.yml @@ -7,7 +7,8 @@ argument_specs: type: list elements: dict description: - - A list of configuration dictionaries that are merged to produce the final configuration. + - A list of configuration dictionaries that are merged to + produce the final configuration. - Each element must have a 'name' key (filename). bind9_default_config: type: list diff --git a/molecule/default/collections.yml b/molecule/default/collections.yml index 6f4772f..70199b7 100644 --- a/molecule/default/collections.yml +++ b/molecule/default/collections.yml @@ -4,4 +4,3 @@ collections: - name: ansible.posix - name: community.crypto - name: community.general - diff --git a/tasks/main.yml b/tasks/main.yml index 12df4a5..9e696e8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -67,7 +67,9 @@ - name: Fail due to invalid configuration ansible.builtin.fail: - msg: "Configuration validation failed. Changes have been reverted. Check the logs for named-checkconf errors." + msg: | + Configuration validation failed. Changes have been reverted. + Check the logs for named-checkconf errors. always: - name: Remove backup files @@ -77,8 +79,8 @@ loop: "{{ bind9_config }}" loop_control: label: "{{ item.name }}" - when: bind9_backup_config | bool is false # Keep if backup is forced, otherwise cleanup temporary atomic backup - + when: bind9_backup_config | bool is false + tags: - bind9 - template