Molecule lint
This commit is contained in:
@@ -18,12 +18,13 @@
|
||||
mode: 0750
|
||||
when: bind9_backup_config is defined and bind9_backup_config
|
||||
|
||||
- name: named.conf.generator
|
||||
- name: Template named.conf.generator
|
||||
ansible.builtin.template:
|
||||
src: named.conf.generator.j2
|
||||
dest: "{{ bind9_cfgdir }}/{{ item.name }}"
|
||||
owner: root
|
||||
group: bind
|
||||
mode: 0640
|
||||
backup: "{{ item.backup | default('false') | bool }}"
|
||||
# validate: 'named-checkconf -z -j %s'
|
||||
loop: "{{ bind9_config }}"
|
||||
@@ -33,8 +34,8 @@
|
||||
- bind9
|
||||
- template
|
||||
notify:
|
||||
- backup bind config
|
||||
- restart bind
|
||||
- Backup bind config
|
||||
- Restart bind
|
||||
|
||||
- name: Ensure the named service is started
|
||||
ansible.builtin.service:
|
||||
|
||||
Reference in New Issue
Block a user