fix: add linter
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
2023-02-08 17:56:13 +01:00
parent b7cba859e2
commit 6b8b178405
7 changed files with 36 additions and 19 deletions

View File

@ -1,7 +1,7 @@
---
- name: create directory for zone {{ zone.file | dirname }}
file:
ansible.builtin.file:
path: "{{ bind_config_directory }}/{{ zone.file | dirname }}"
owner: "{{ bind_unix_user }}"
group: "{{ bind_unix_group }}"
@ -14,7 +14,7 @@
when: zone.file is defined and zone.file | length > 0
- name: "template view {{ view.name }}"
template:
ansible.builtin.template:
src: "{{ inventory_hostname }}/etc/named/{{ zone.file }}.j2"
dest: "{{ bind_config_directory }}/{{ zone.file }}"
owner: "{{ bind_unix_user }}"
@ -25,4 +25,4 @@
loop_control:
loop_var: zone
when: zone.type == 'master'
notify: restart named
notify: restart named