Update to 2022-03-17 19:00

This commit is contained in:
Daniel Berteaud
2022-03-17 19:00:06 +01:00
parent 61d1212b84
commit 86f6bd4781
8 changed files with 32 additions and 6 deletions

View File

@@ -4,6 +4,13 @@
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', '<')
tags: pg
- name: Install systemd unit
template: src=ldap2pg.{{ item }}.j2 dest=/etc/systemd/system/ldap2pg.{{ item }}
loop:
@@ -17,5 +24,5 @@
- name: Reload systemd
systemd: daemon_reload=True
when: ldap2Pg_units.results | selectattr('changed','equalto',True) | list | length > 0
when: ldap2pg_units.results | selectattr('changed','equalto',True) | list | length > 0
tags: pg

View File

@@ -1,5 +1,5 @@
---
- name: Handle ldap2pg timer
systemd: name=ldap2pg.timer state={{ (ldap2pg_sync_freq == 'never') | ternary('stopped', 'started') }} enabled={{ (ldap2pg_sync_freq == 'never') | ternary(False, True) }}
systemd: name=ldap2pg.timer state={{ ldap2pg_dry_mode | ternary('stopped', 'started') }} enabled={{ ldap2pg_dry_mode | ternary(False, True) }}
tags: pg