From e6cf0e1578349941436cccb03aaf6b77f66812da Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Mon, 26 Nov 2018 15:46:39 +0100
Subject: [PATCH] ipareplica: Make ipaserver_enable_ipa module working for
 ipareplica role

The ipareplica role is reusing the ipaserver_enable_ipa module. This module
needed some extensions on the server to enable the delayed services and
also to dump DNS configuration (see commit a128726).
For replica it is not needed to dump the DNS configuration, therefore it is
simply possible to set detup_dns to no to make this module also working
for ipareplica.
---
 roles/ipareplica/tasks/install.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/roles/ipareplica/tasks/install.yml b/roles/ipareplica/tasks/install.yml
index baa0d0b4..99f96e71 100644
--- a/roles/ipareplica/tasks/install.yml
+++ b/roles/ipareplica/tasks/install.yml
@@ -599,6 +599,9 @@
     ipaserver_enable_ipa:
       hostname: "{{ result_ipareplica_test.hostname }}"
       setup_ca: "{{ result_ipareplica_prepare.config_setup_ca }}"
+      # The setup_dns step is only used on the server, therefore simply
+      # setting setup_dns to reuse the server version here.
+      setup_dns: no
     register: result_ipareplica_enable_ipa
 
   - name: Install - Cleanup root IPA cache
-- 
GitLab