gave each task a name

This commit is contained in:
2024-07-22 17:04:21 +02:00
parent eb64bb5296
commit a681febfed

View File

@@ -5,34 +5,40 @@
- block: - block:
- name: nameserver | unbound | install and configure - name: nameserver | unbound | install and configure
block: block:
- include_tasks: install_unbound.yml - name: nameserver | unbound | install
- include_tasks: configure_unbound_snmpd.yml include_tasks: install_unbound.yml
- name: nameserver | unbound | configure
include_tasks: configure_unbound_snmpd.yml
when: when:
- unbound is defined - unbound is defined
- unbound == true - unbound is true
- powerdns_recursor is not defined or powerdns_recursor == false - powerdns_recursor is not defined or powerdns_recursor is false
- name: nameserver | unbound | disable systemd-resolved - name: nameserver | unbound | disable systemd-resolved
include_tasks: disable-systemd-resolved.yml include_tasks: disable-systemd-resolved.yml
when: bind == true or unbound == true or powerdns_recursor == true when: bind is true or unbound is true or powerdns_recursor is true
- name: nameserver | bind | install and configure - name: nameserver | bind | install and configure
block: block:
- include_tasks: install_bind.yml - name: nameserver | bind | install
- include_tasks: configure_bind_snmpd.yml include_tasks: install_bind.yml
- name: nameserver | bind | configure
include_tasks: configure_bind_snmpd.yml
when: when:
- bind is defined - bind is defined
- bind == true - bind is true
- powerdns_auth is not defined or powerdns_auth == false - 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:
- include_tasks: install_powerdns_recursor.yml - name: nameserver| powerdns-recursor | install
- include_tasks: configure_powerdns_recursor_snmpd.yml include_tasks: install_powerdns_recursor.yml
- name: nameserver | powerdns-recursor | configure
include_tasks: configure_powerdns_recursor_snmpd.yml
when: when:
- powerdns_recursor is defined - powerdns_recursor is defined
- powerdns_recursor == true - powerdns_recursor is true
- unbound is not defined or unbound == false - unbound is not defined or unbound is false
rescue: rescue:
- set_fact: task_failed=true - set_fact: task_failed=true