diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 3e707ad..1b9b6e4 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -1,7 +1,7 @@ --- name: Test -on: +on: # noqa: yaml[truthy] push: branches: - main diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index b792137..ea41b85 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -4,7 +4,7 @@ tasks: - name: Include bind9 role ansible.builtin.include_role: - name: ../../../ansible-bind9-role + name: ../../../ansible-bind9-role # noqa: role-name[path] vars: bind9_host_config: - name: named.conf.options diff --git a/tasks/main.yml b/tasks/main.yml index 7935462..e087a7d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,6 +22,9 @@ tags: - bind9 - template + notify: + - Backup bind config + - Restart bind block: - name: Create backup of current config ansible.builtin.copy: @@ -82,9 +85,6 @@ loop_control: label: "{{ item.name }}" when: bind9_backup_config | bool is false - notify: - - Backup bind config - - Restart bind - name: Ensure the named service is started ansible.builtin.service: diff --git a/tests/test.yml b/tests/test.yml index 5e082e0..2df4427 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -2,4 +2,4 @@ - hosts: localhost remote_user: root roles: - - bind9 + - bind9 # noqa: syntax-check[specific]