From 44b3c3003d1a115a00cefd8f8bd46da4466bf09b Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Mon, 29 Nov 2021 16:17:44 -0300 Subject: [PATCH] Debian Buster: Fix "No module named 'ipapython'". When using ipaclient role under Debian 10 (Buster), it is required that the python interpreter is set to Python 2.7 as freeipa-client package pulls in Python 2.7 dependencies, and does not work with Python 3. This patch adds configuration to properly set python interpreter. Based on the work by Marc Richter (@The-Judge on Github). Fix issue #607. --- roles/ipaclient/vars/Debian-10.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 roles/ipaclient/vars/Debian-10.yml diff --git a/roles/ipaclient/vars/Debian-10.yml b/roles/ipaclient/vars/Debian-10.yml new file mode 100644 index 00000000..8de5dc8e --- /dev/null +++ b/roles/ipaclient/vars/Debian-10.yml @@ -0,0 +1,7 @@ +--- +# vars/Debian.yml +ipaclient_packages: [ "freeipa-client" ] +# Debian Buster must use python2 as Python interpreter due +# to the way freeipa-client package is defined. +# You must install package python2.7 before executing this role. +ansible_python_interpreter: '/usr/bin/python2' -- GitLab