Molecule lint

This commit is contained in:
Daniel Akulenok
2022-08-30 16:02:26 +02:00
parent 9818c24b26
commit ba17ed2716
5 changed files with 29 additions and 14 deletions

View File

@@ -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: