refac: adapt style to pass ansible-lint checks
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b35ba22a6d
commit
4ef83cee22
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: restart named
|
- name: Restart named
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: "{{ bind_service_name }}"
|
name: "{{ bind_service_name }}"
|
||||||
state: restarted
|
state: restarted
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Include OS-specific variables
|
- name: Include OS-specific variables
|
||||||
include_vars: "{{ ansible_os_family }}.yml"
|
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
- name: Install bind and dependencies
|
- name: Install bind and dependencies
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
@ -29,13 +29,13 @@
|
|||||||
|
|
||||||
- name: Remove existing journal files
|
- name: Remove existing journal files
|
||||||
block:
|
block:
|
||||||
- name: find existing journal files
|
- name: Find existing journal files
|
||||||
find:
|
ansible.builtin.find:
|
||||||
path: "{{ bind_config_directory }}"
|
path: "{{ bind_config_directory }}"
|
||||||
recurse: true
|
recurse: true
|
||||||
patterns: "*.jnl"
|
patterns: "*.jnl"
|
||||||
register: files_to_delete
|
register: files_to_delete
|
||||||
- name: delete existing journal files
|
- name: Delete existing journal files
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
state: absent
|
state: absent
|
||||||
@ -50,7 +50,7 @@
|
|||||||
# loop_var: view
|
# loop_var: view
|
||||||
|
|
||||||
- name: Create DNS-Zone files
|
- name: Create DNS-Zone files
|
||||||
include_tasks: template_zone_files.yml
|
ansible.builtin.include_tasks: template_zone_files.yml
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ bind9_views }}"
|
- "{{ bind9_views }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: create directory for zone {{ zone.file | dirname }}
|
- name: "Create directory for zone {{ zone.file | dirname }}"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ bind_config_directory }}/{{ zone.file | dirname }}"
|
path: "{{ bind_config_directory }}/{{ zone.file | dirname }}"
|
||||||
owner: "{{ bind_unix_user }}"
|
owner: "{{ bind_unix_user }}"
|
||||||
@ -13,7 +13,7 @@
|
|||||||
loop_var: zone
|
loop_var: zone
|
||||||
when: zone.file is defined and zone.file | length > 0
|
when: zone.file is defined and zone.file | length > 0
|
||||||
|
|
||||||
- name: "template view {{ view.name }}"
|
- name: "Template view {{ view.name }}"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: "{{ inventory_hostname }}/etc/named/{{ zone.file }}.j2"
|
src: "{{ inventory_hostname }}/etc/named/{{ zone.file }}.j2"
|
||||||
dest: "{{ bind_config_directory }}/{{ zone.file }}"
|
dest: "{{ bind_config_directory }}/{{ zone.file }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user