mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2022-03-07 14:00
This commit is contained in:
22
roles/unmaintained/wh_zimbra/tasks/zmldapsync.yml
Normal file
22
roles/unmaintained/wh_zimbra/tasks/zmldapsync.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
- name: Deploy LDAP sync configuration
|
||||
template: src=zmldapsync-wh.yml.j2 dest=/opt/zimbra/conf/zmldapsync-wh.yml mode=600
|
||||
notify: start zmldapsync-wh
|
||||
tags: mail
|
||||
|
||||
- name: Deploy LDAP sync systemd units
|
||||
template: src=zmldapsync-wh.{{ item }}.j2 dest=/etc/systemd/system/zmldapsync-wh.{{ item }}
|
||||
loop:
|
||||
- service
|
||||
- timer
|
||||
register: wh_zimbra_systemd_unit
|
||||
tags: mail
|
||||
|
||||
- name: Reload systemd
|
||||
systemd: daemon_reload=True
|
||||
when: wh_zimbra_systemd_unit.results | selectattr('changed','equalto',True) | list | length > 0
|
||||
tags: mail
|
||||
|
||||
- name: Enable LDAP sync services
|
||||
systemd: name=zmldapsync-wh.timer state=started enabled=True
|
||||
tags: mail
|
Reference in New Issue
Block a user