mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-22 21:23:23 +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 }}
|
package: name={{ ldap2pg_packages }}
|
||||||
tags: pg
|
tags: pg
|
||||||
|
|
||||||
- name: Patch ldap2pg to specify global cacert
|
- when: ansible_os_family == 'RedHat' and ansible_distribution_major_version is version('8', '<')
|
||||||
patch: src=ldap2pg_cacert.diff dest=/usr/lib/python2.7/site-packages/ldap2pg/ldap.py
|
block:
|
||||||
when:
|
- name: Check if ldap2Pg is built with python 2 or 3
|
||||||
- ansible_os_family == 'RedHat'
|
stat: path=/usr/lib/python3.6/site-packages/ldap2pg/ldap.py
|
||||||
- ansible_distribution_major_version is version('8', '<')
|
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
|
tags: pg
|
||||||
|
|
||||||
- name: Install systemd unit
|
- name: Install systemd unit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user