From 9a24c200081d98ac5f1fab2b674b9b7fc60ecc74 Mon Sep 17 00:00:00 2001 From: Alessandro Fort Date: Thu, 12 May 2022 10:21:38 +0200 Subject: [PATCH 1/3] Add ipaclient support for Amazon Linux 2 --- roles/ipaclient/vars/RedHat-2.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 roles/ipaclient/vars/RedHat-2.yml diff --git a/roles/ipaclient/vars/RedHat-2.yml b/roles/ipaclient/vars/RedHat-2.yml new file mode 100644 index 000000000..d3b9632d2 --- /dev/null +++ b/roles/ipaclient/vars/RedHat-2.yml @@ -0,0 +1,7 @@ +# defaults file for ipaclient +# vars/RedHat-2 +# Provides support for RedHat-7 based Amazon Linux 2 + +ipaclient_packages: [ "ipa-client", "libselinux-python" ] +# The 'ipapython' module is not available in python3. +ansible_python_interpreter: '/usr/bin/python2' From f28d9fcaeec6a295e7b34751d7acb01cb9a05b87 Mon Sep 17 00:00:00 2001 From: Alessandro Fort Date: Thu, 12 May 2022 14:31:21 +0200 Subject: [PATCH 2/3] Rename file to Amazon-2 --- roles/ipaclient/vars/{RedHat-2.yml => Amazon-2.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename roles/ipaclient/vars/{RedHat-2.yml => Amazon-2.yml} (100%) diff --git a/roles/ipaclient/vars/RedHat-2.yml b/roles/ipaclient/vars/Amazon-2.yml similarity index 100% rename from roles/ipaclient/vars/RedHat-2.yml rename to roles/ipaclient/vars/Amazon-2.yml From e7ac35bedc5df4883dc5c97a770c4753a148b0cc Mon Sep 17 00:00:00 2001 From: Alessandro Fort Date: Tue, 17 May 2022 13:04:37 +0200 Subject: [PATCH 3/3] Updated comments for ipaclient/vars/Amazon-2.yml --- roles/ipaclient/vars/Amazon-2.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/ipaclient/vars/Amazon-2.yml b/roles/ipaclient/vars/Amazon-2.yml index d3b9632d2..194d62991 100644 --- a/roles/ipaclient/vars/Amazon-2.yml +++ b/roles/ipaclient/vars/Amazon-2.yml @@ -1,7 +1,9 @@ # defaults file for ipaclient -# vars/RedHat-2 +# vars/Amazon-2 # Provides support for RedHat-7 based Amazon Linux 2 ipaclient_packages: [ "ipa-client", "libselinux-python" ] -# The 'ipapython' module is not available in python3. +# The 'ipapython' module is not available for python3 in AL2's repos, and Ansible +# doesn't automatically use python2 in Amazon Linux like for other RHEL-based +# distros, so we need to manually set it. ansible_python_interpreter: '/usr/bin/python2'