From b51397eb89ad0dbab1f8b81e58c841834d20fc07 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Tue, 4 Jun 2019 11:58:52 +0200
Subject: [PATCH] ipa[server,replica,client]: Deactivate Python2/3 test

This test is not properly working with EL-8 nodes as the default system
python is not located in /usr/bin. Additionally Ansible 2.8 is able to
detect the default python version on the system. As the installation
base for IPA 4.5.90 where the Python 3 bindings have not been working
properly should be really small or not existing any more the deactivation
of this test should be fine.
---
 roles/ipaclient/tasks/install.yml  | 10 +++++-----
 roles/ipareplica/tasks/install.yml |  4 ++--
 roles/ipaserver/tasks/install.yml  |  4 ++--
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/roles/ipaclient/tasks/install.yml b/roles/ipaclient/tasks/install.yml
index b7417229..d84f899b 100644
--- a/roles/ipaclient/tasks/install.yml
+++ b/roles/ipaclient/tasks/install.yml
@@ -8,8 +8,8 @@
   with_items: "{{ ipaclient_packages }}"
   when: ipaclient_install_packages | bool
 
-- name: Install - Include Python2/3 import test
-  import_tasks: "{{ role_path }}/tasks/python_2_3_test.yml"
+#- name: Install - Include Python2/3 import test
+#  import_tasks: "{{ role_path }}/tasks/python_2_3_test.yml"
 
 - name: Install - Set ipaclient_servers
   set_fact:
@@ -111,9 +111,9 @@
       set_fact:
         ipaclient_ansible_python_interpreter: "{{ ansible_python_interpreter }}"
 
-    - name: Install - Include Python2/3 import test
-      import_tasks: "{{ role_path }}/tasks/python_2_3_test.yml"
-      delegate_to: "{{ result_ipaclient_test.servers[0] }}"
+    #- name: Install - Include Python2/3 import test
+    #  import_tasks: "{{ role_path }}/tasks/python_2_3_test.yml"
+    #  delegate_to: "{{ result_ipaclient_test.servers[0] }}"
 
     - name: Install - Get One-Time Password for client enrollment
       no_log: yes
diff --git a/roles/ipareplica/tasks/install.yml b/roles/ipareplica/tasks/install.yml
index 56215a11..64e3e426 100644
--- a/roles/ipareplica/tasks/install.yml
+++ b/roles/ipareplica/tasks/install.yml
@@ -25,8 +25,8 @@
 
   when: ipareplica_install_packages | bool
 
-- name: Install - Include Python2/3 import test
-  import_tasks: "{{ role_path }}/tasks/python_2_3_test.yml"
+#- name: Install - Include Python2/3 import test
+#  import_tasks: "{{ role_path }}/tasks/python_2_3_test.yml"
 
 - name: Install - Set default principal if no keytab is given
   set_fact:
diff --git a/roles/ipaserver/tasks/install.yml b/roles/ipaserver/tasks/install.yml
index cfb88ead..84dcda2f 100644
--- a/roles/ipaserver/tasks/install.yml
+++ b/roles/ipaserver/tasks/install.yml
@@ -24,8 +24,8 @@
 
   when: ipaserver_install_packages | bool
 
-- name: Install - Include Python2/3 import test
-  import_tasks: "{{ role_path }}/tasks/python_2_3_test.yml"
+#- name: Install - Include Python2/3 import test
+#  import_tasks: "{{ role_path }}/tasks/python_2_3_test.yml"
 
 - name: Install - Server installation test
   ipaserver_test:
-- 
GitLab