reordered block

This commit is contained in:
2024-07-22 16:56:00 +02:00
parent a8b67bf4ad
commit eb64bb5296
4 changed files with 55 additions and 55 deletions

View File

@@ -22,4 +22,4 @@
service:
name: "powerdns-recursor"
state: started
enabled: True
enabled: True

View File

@@ -22,4 +22,4 @@
service:
name: "unbound"
state: started
enabled: True
enabled: True

View File

@@ -3,36 +3,36 @@
tags: always
- block:
- block:
- name: nameserver | unbound | install and configure
include_tasks: install_unbound.yml
include_tasks: configure_unbound_snmpd.yml
when:
- unbound is defined
- unbound == true
- powerdns_recursor is not defined or powerdns_recursor == false
- name: nameserver | unbound | install and configure
block:
- include_tasks: install_unbound.yml
- include_tasks: configure_unbound_snmpd.yml
when:
- unbound is defined
- unbound == true
- powerdns_recursor is not defined or powerdns_recursor == false
- name: nameserver | unbound | disable systemd-resolved
include_tasks: disable-systemd-resolved.yml
when: bind == true or unbound == true or powerdns_recursor == true
- block:
- name: nameserver | bind | install and configure
include_tasks: install_bind.yml
include_tasks: configure_bind_snmpd.yml
when:
- bind is defined
- bind == true
- powerdns_auth is not defined or powerdns_auth == false
- name: nameserver | bind | install and configure
block:
- include_tasks: install_bind.yml
- include_tasks: configure_bind_snmpd.yml
when:
- bind is defined
- bind == true
- powerdns_auth is not defined or powerdns_auth == false
- block:
- name: nameserver | powerdns-recursor | install and configure
include_tasks: install_powerdns_recursor.yml
include_tasks: configure_powerdns_recursor_snmpd.yml
when:
- powerdns_recursor is defined
- powerdns_recursor == true
- unbound is not defined or unbound == false
- name: nameserver | powerdns-recursor | install and configure
block:
- include_tasks: install_powerdns_recursor.yml
- include_tasks: configure_powerdns_recursor_snmpd.yml
when:
- powerdns_recursor is defined
- powerdns_recursor == true
- unbound is not defined or unbound == false
rescue:
- set_fact: task_failed=true