mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
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:
@@ -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
|
||||
|
||||
2
roles/ipaclient/vars/Fedora-25.yml
Normal file
2
roles/ipaclient/vars/Fedora-25.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
ipaclient_package: python2-ipaclient
|
||||
ansible_python_interpreter: '/usr/bin/python2'
|
||||
2
roles/ipaclient/vars/Fedora-26.yml
Normal file
2
roles/ipaclient/vars/Fedora-26.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
ipaclient_package: python2-ipaclient
|
||||
ansible_python_interpreter: '/usr/bin/python2'
|
||||
5
roles/ipaclient/vars/RedHat-7.yml
Normal file
5
roles/ipaclient/vars/RedHat-7.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
# defaults file for ipaclient
|
||||
# vars/rhel.yml
|
||||
ipaclient_package: ipa-client
|
||||
ansible_python_interpreter: '/usr/bin/python2'
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user