From 0c942baea271bcde4f53dd82c4ccff2ca33bf834 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Mon, 11 Jun 2018 15:27:35 +0200
Subject: [PATCH] ipaserver: Fix issue with setup_dns and forwarders or
 no_forwarders

When forwarders list or the no_forwarders flag has been set, the
configuraiton does not reflect the setting. With no_forwarders
the preparation step of the DNS server could fail in ipaserver_prepare.

This is addressing the issue of pull request #25.
---
 roles/ipaserver/tasks/install.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/roles/ipaserver/tasks/install.yml b/roles/ipaserver/tasks/install.yml
index a08c40f7..1bfaf6e0 100644
--- a/roles/ipaserver/tasks/install.yml
+++ b/roles/ipaserver/tasks/install.yml
@@ -134,6 +134,8 @@
       reverse_zones: "{{ result_ipaserver_test.reverse_zones }}"
       no_reverse: "{{ ipaserver_no_reverse }}"
       auto_reverse: "{{ ipaserver_auto_reverse }}"
+      forwarders: "{{ ipaserver_forwarders | default([]) }}"
+      no_forwarders: "{{ ipaserver_no_forwarders }}"
       auto_forwarders: "{{ ipaserver_auto_forwarders }}"
       no_dnssec_validation: "{{ result_ipaserver_test.no_dnssec_validation }}"
       ### additional ###
-- 
GitLab