From 36c7e0e122b3e917de06ea0983ae1f39fcaa8408 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Thu, 22 Nov 2018 16:29:34 +0100
Subject: [PATCH] ipaserver_setup_custodia: options.promote needs to be set

The use of custodiainstance.get_custodia_instance requires that
options.promote exists. As this is a server installation, promote
is set to False.
---
 roles/ipaserver/library/ipaserver_setup_custodia.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/roles/ipaserver/library/ipaserver_setup_custodia.py b/roles/ipaserver/library/ipaserver_setup_custodia.py
index 1dc34e8e..5fbb65c0 100644
--- a/roles/ipaserver/library/ipaserver_setup_custodia.py
+++ b/roles/ipaserver/library/ipaserver_setup_custodia.py
@@ -70,6 +70,7 @@ def main():
     options.realm_name = ansible_module.params.get('realm')
     options.host_name = ansible_module.params.get('hostname')
     options.setup_ca = ansible_module.params.get('setup_ca')
+    options.promote = False
 
     # init ##################################################################
 
-- 
GitLab