fix: add noqa comments for linting in workflow and role inclusion
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
name: Test
|
||||
|
||||
on:
|
||||
on: # noqa: yaml[truthy]
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- bind9
|
||||
- bind9 # noqa: syntax-check[specific]
|
||||
|
||||
Reference in New Issue
Block a user