From 72a7dd11576dcca88bdab9493e5d93a8454eeb42 Mon Sep 17 00:00:00 2001 From: Anton Ustyuzhanin Date: Thu, 15 Mar 2018 16:54:05 +0100 Subject: [PATCH] Update handlers --- handlers/main.yml | 22 ++++++++++++++++++++-- tasks/main.yml | 2 ++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index d8638bc..b5e7d9d 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,9 +1,27 @@ --- # handlers file for sssd_ldap -- name: restart sssd +- name: stop sssd service: name: sssd - state: restarted + state: stopped + listen: restart sssd + +- name: delete sssd cache + file: + path: "/var/lib/sss/db/{{ item }}" + state: absent + with_items: + - cache_default.ldb + - config.ldb + - sssd.ldb + - timestamps_default.ldb + listen: restart sssd + +- name: start sssd + service: + name: sssd + state: started + listen: restart sssd - name: run pam auth update shell: pam-auth-update --package diff --git a/tasks/main.yml b/tasks/main.yml index 31fa9a7..19254c6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -19,3 +19,5 @@ - include: pamd.yml - include: sshd.yml + +- meta: flush_handlers