From 69b894a7e54e30aaa69a1eb12c4e2f7364330f21 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Fri, 31 May 2019 17:47:05 +0200
Subject: [PATCH] ipareplica: Disable automatic removal of replication
 agreements in uninstall

Replication agreements are not removed with the command line tools.
---
 roles/ipareplica/tasks/uninstall.yml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/roles/ipareplica/tasks/uninstall.yml b/roles/ipareplica/tasks/uninstall.yml
index 6234327c..95dfe196 100644
--- a/roles/ipareplica/tasks/uninstall.yml
+++ b/roles/ipareplica/tasks/uninstall.yml
@@ -24,15 +24,15 @@
   retries: 2
   delay: 1
 
-- name: Uninstall - Remove all replication agreements and data about replica
-  command: >
-    /usr/sbin/ipa-replica-manage
-    del
-    {{ ipareplica_hostname | default(ansible_fqdn) }}
-    --force
-    --password={{ ipadm_password }}
-  failed_when: False
-  delegate_to: "{{ groups.ipaserver[0] | default(fail) }}"
+#- name: Uninstall - Remove all replication agreements and data about replica
+#  command: >
+#    /usr/sbin/ipa-replica-manage
+#    del
+#    {{ ipareplica_hostname | default(ansible_fqdn) }}
+#    --force
+#    --password={{ ipadm_password }}
+#  failed_when: False
+#  delegate_to: "{{ groups.ipaserver[0] | default(fail) }}"
 
 # - name: Remove IPA replica packages
 #   package:
-- 
GitLab