Add support for Python3 based freeipa versions (F-27+), make Python3 default

Add configuration for F-26, F-27 and RHEL-7 to be Python2 based
This commit is contained in:
Thomas Woerner
2017-10-02 17:12:15 +02:00
parent e797410e62
commit 895a887701
5 changed files with 15 additions and 3 deletions

View File

@@ -4,8 +4,10 @@
- name: Import variables specific to distribution
include_vars: "{{ item }}"
with_first_found:
- vars/{{ ansible_distribution }}.yml
- vars/default.yml
- "vars/{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
- "vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
- "vars/{{ ansible_distribution }}.yml"
- "vars/default.yml"
- name: Install IPA client
include: tasks/install.yml

View File

@@ -0,0 +1,2 @@
ipaclient_package: python2-ipaclient
ansible_python_interpreter: '/usr/bin/python2'

View File

@@ -0,0 +1,2 @@
ipaclient_package: python2-ipaclient
ansible_python_interpreter: '/usr/bin/python2'

View File

@@ -0,0 +1,5 @@
# defaults file for ipaclient
# vars/rhel.yml
ipaclient_package: ipa-client
ansible_python_interpreter: '/usr/bin/python2'

View File

@@ -1,3 +1,4 @@
# defaults file for ipaclient
# vars/default.yml
ipaclient_package: freeipa-client
ipaclient_package: python3-ipaclient
ansible_python_interpreter: '/usr/bin/python3'