diff --git a/roles/unbound/tasks/main.yml b/roles/unbound/tasks/main.yml index 18f99ce..44a4358 100644 --- a/roles/unbound/tasks/main.yml +++ b/roles/unbound/tasks/main.yml @@ -1,11 +1,13 @@ --- # This is used to let unbound bind to the right IP addresses. -- set_fact: +- name: set dns_host_suffix (main) + set_fact: dns_host_suffix: "{{ dns_host_suffix_main }}" when: "'rdns_main' in group_names" -- set_fact: +- name: set dns_host_suffix (backup) + set_fact: dns_host_suffix: "{{ dns_host_suffix_backup }}" when: "'rdns_backup' in group_names"