Skip to content

Commit

Permalink
Merge pull request #10 from hellofresh/feature-remove-cache
Browse files Browse the repository at this point in the history
PTII-351 Remove sssd cache upon service restart
  • Loading branch information
antonu17 authored Mar 15, 2018
2 parents 485a13d + 72a7dd1 commit e73567c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 20 additions & 2 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@
- include: pamd.yml

- include: sshd.yml

- meta: flush_handlers

0 comments on commit e73567c

Please sign in to comment.