bind9-ansible-role/tasks/main.yml

21 lines
483 B
YAML
Raw Permalink Normal View History

2021-12-27 20:58:01 +01:00
- import_tasks: 01-dependencies.yml
- import_tasks: 02-backup.yml
- import_tasks: 03-configure.yml
- block:
- name: Reload rndc
shell: rndc freeze && rndc reload && rndc thaw
- include_tasks: 04-test-changes.yml
with_items: "{{bind9_zones}}"
loop_control:
loop_var: zone
2021-12-27 21:47:11 +01:00
- import_tasks: 06-cleanup.yml
2021-12-27 20:58:01 +01:00
rescue:
- import_tasks: 05-rollback.yml
when: not bind9_initial_setup
- name: Reload rndc
shell: rndc freeze && rndc reload && rndc thaw