From d472931c5aacab009a9c96defd99ea64a47c00cb Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Thu, 4 Apr 2024 22:10:14 +0200 Subject: [PATCH] d --- group_vars/ldap.yml | 2 +- roles/mgrote_lldap/handlers/main.yml | 6 ++++++ roles/mgrote_lldap/tasks/main.yml | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/group_vars/ldap.yml b/group_vars/ldap.yml index a7b0789f..fae6c331 100644 --- a/group_vars/ldap.yml +++ b/group_vars/ldap.yml @@ -48,7 +48,7 @@ lldap_smtp_reply_to: "Do not reply " lldap_smtp_server: "docker10.mgrote.net" lldap_smtp_port: "1025" lldap_smtp_smtp_encryption: "NONE" -#lldap_smtp_user: "info@mgrote.net" # unused in role +lldap_smtp_user: "info@mggggrote.net" # unused in role lldap_smtp_enable_password_reset: "true" # must be a string not a boolean # "meta vars"; daraus werden die db-url und die postgres-db abgeleitet lldap_db_name: "lldap" diff --git a/roles/mgrote_lldap/handlers/main.yml b/roles/mgrote_lldap/handlers/main.yml index 81b2c4ad..0373bbd1 100644 --- a/roles/mgrote_lldap/handlers/main.yml +++ b/roles/mgrote_lldap/handlers/main.yml @@ -6,4 +6,10 @@ masked: false enabled: true state: started + +- name: Ensure service is restarted + become: true + ansible.builtin.systemd: + name: lldap.service + state: restarted ... diff --git a/roles/mgrote_lldap/tasks/main.yml b/roles/mgrote_lldap/tasks/main.yml index a658d7ae..3b0f69d6 100644 --- a/roles/mgrote_lldap/tasks/main.yml +++ b/roles/mgrote_lldap/tasks/main.yml @@ -23,5 +23,7 @@ owner: lldap group: lldap mode: "0644" - notify: Ensure services are enabled and started + notify: + - Ensure services are enabled and started + - Ensure service is restarted ...