rearranged tasks

This commit is contained in:
rene
2022-04-21 20:23:01 +02:00
parent 7cdfe65ddc
commit 78ab48812c

View File

@@ -3,10 +3,6 @@
tags: always tags: always
- block: - block:
- name: nameserver | unbound | disable systemd-resolved
include_tasks: disable-systemd-resolved.yml
when: bind == true or unbound == true
- block: - block:
- include_tasks: install_bind.yml - include_tasks: install_bind.yml
- include_tasks: configure_bind_snmpd.yml - include_tasks: configure_bind_snmpd.yml
@@ -21,5 +17,9 @@
- set_fact: task_failed=true - set_fact: task_failed=true
when: unbound == true when: unbound == true
- name: nameserver | unbound | disable systemd-resolved
include_tasks: disable-systemd-resolved.yml
when: bind == true or unbound == true
rescue: rescue:
- set_fact: task_failed=true - set_fact: task_failed=true