reordered tasks
This commit is contained in:
@@ -18,17 +18,6 @@
|
|||||||
include_tasks: disable-systemd-resolved.yml
|
include_tasks: disable-systemd-resolved.yml
|
||||||
when: bind is true or unbound is true or powerdns_recursor is true
|
when: bind is true or unbound is true or powerdns_recursor is true
|
||||||
|
|
||||||
- name: nameserver | bind | install and configure
|
|
||||||
block:
|
|
||||||
- name: nameserver | bind | install
|
|
||||||
include_tasks: install_bind.yml
|
|
||||||
- name: nameserver | bind | configure
|
|
||||||
include_tasks: configure_bind_snmpd.yml
|
|
||||||
when:
|
|
||||||
- bind is defined
|
|
||||||
- bind is true
|
|
||||||
- powerdns_auth is not defined or powerdns_auth is false
|
|
||||||
|
|
||||||
- name: nameserver | powerdns-recursor | install and configure
|
- name: nameserver | powerdns-recursor | install and configure
|
||||||
block:
|
block:
|
||||||
- name: nameserver| powerdns-recursor | install
|
- name: nameserver| powerdns-recursor | install
|
||||||
@@ -40,5 +29,16 @@
|
|||||||
- powerdns_recursor is true
|
- powerdns_recursor is true
|
||||||
- unbound is not defined or unbound is false
|
- unbound is not defined or unbound is false
|
||||||
|
|
||||||
|
- name: nameserver | bind | install and configure
|
||||||
|
block:
|
||||||
|
- name: nameserver | bind | install
|
||||||
|
include_tasks: install_bind.yml
|
||||||
|
- name: nameserver | bind | configure
|
||||||
|
include_tasks: configure_bind_snmpd.yml
|
||||||
|
when:
|
||||||
|
- bind is defined
|
||||||
|
- bind is true
|
||||||
|
- powerdns_auth is not defined or powerdns_auth is false
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
- set_fact: task_failed=true
|
- set_fact: task_failed=true
|
||||||
|
|||||||
Reference in New Issue
Block a user