2022-03-17 09:00:06 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install packages
|
|
|
|
package: name={{ ldap2pg_packages }}
|
|
|
|
tags: pg
|
|
|
|
|
|
|
|
- name: Install systemd unit
|
|
|
|
template: src=ldap2pg.{{ item }}.j2 dest=/etc/systemd/system/ldap2pg.{{ item }}
|
|
|
|
loop:
|
|
|
|
- service
|
|
|
|
- timer
|
|
|
|
notify:
|
|
|
|
- restart ldap2pg.service
|
|
|
|
- restart ldap2pg.timer
|
2022-03-17 10:00:06 +01:00
|
|
|
register: ldap2pg_units
|
|
|
|
tags: pg
|
|
|
|
|
|
|
|
- name: Reload systemd
|
|
|
|
systemd: daemon_reload=True
|
|
|
|
when: ldap2Pg_units.results | selectattr('changed','equalto',True) | list | length > 0
|
2022-03-17 09:00:06 +01:00
|
|
|
tags: pg
|