debuginfod: add ansible notify/handler to restart if needed

Respond to config file changes.

Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
This commit is contained in:
Frank Ch. Eigler 2023-05-02 17:11:24 -04:00 committed by zlopez
parent 87f66a8ef6
commit 76c3a5d8c1
2 changed files with 15 additions and 0 deletions

View File

@ -216,3 +216,6 @@
- name: restart systemd-oomd
service: name=systemd-oomd state=reload
- name: restart debuginfod
service: name=debuginfod state=restarted

View File

@ -37,6 +37,14 @@
package: name=sqlite state=present
tags: debuginfod
- name: install sqlite-analyzer for diagnostics
package: name=sqlite-analyzer state=present
tags: debuginfod
- name: install sqlite for diagnostics
package: name=sqlite state=present
tags: debuginfod
- name: install rsync for data backups
package: name=rsync state=present
tags: debuginfod
@ -44,6 +52,8 @@
- name: install debuginfod configuration
copy: src="{{ files }}/debuginfod/sysconfig.debuginfod" dest=/etc/sysconfig/debuginfod owner=root group=root mode=644
tags: debuginfod
notify:
- restart debuginfod
- name: ensure systemd drop-in directory exists
file: >
@ -54,6 +64,8 @@
- name: install debuginfod systemd drop-in
tags: debuginfod
copy: src="{{ files }}/debuginfod/debuginfod.service.d" dest=/etc/systemd/system/debuginfod.service.d/override.conf owner=root group=root mode=644
notify:
- restart debuginfod
- name: ensure debuginfod is enabled and started
service: