mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-23 21:53:21 +02:00
Update to 2022-07-07 23:00
This commit is contained in:
parent
eee6e43858
commit
0319e1f4a1
@ -4,11 +4,17 @@
|
||||
package: name={{ ldap2pg_packages }}
|
||||
tags: pg
|
||||
|
||||
- name: Patch ldap2pg to specify global cacert
|
||||
patch: src=ldap2pg_cacert.diff dest=/usr/lib/python2.7/site-packages/ldap2pg/ldap.py
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ansible_distribution_major_version is version('8', '<')
|
||||
- when: ansible_os_family == 'RedHat' and ansible_distribution_major_version is version('8', '<')
|
||||
block:
|
||||
- name: Check if ldap2Pg is built with python 2 or 3
|
||||
stat: path=/usr/lib/python3.6/site-packages/ldap2pg/ldap.py
|
||||
register: ldap2pg_py
|
||||
|
||||
- name: Set ldap.py path
|
||||
set_fact: ldap_py_ver={{ ldap2pg_py.stat.exists | ternary('3.6', '2.7') }}
|
||||
|
||||
- name: Patch ldap2pg to specify global cacert
|
||||
patch: src=ldap2pg_cacert.diff dest=/usr/lib/python{{ ldap_py_ver }}/site-packages/ldap2pg/ldap.py
|
||||
tags: pg
|
||||
|
||||
- name: Install systemd unit
|
||||
|
Loading…
x
Reference in New Issue
Block a user