From 76c3a5d8c121d4c2531fedfe3842165f99a67fc7 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Tue, 2 May 2023 17:11:24 -0400 Subject: [PATCH] debuginfod: add ansible notify/handler to restart if needed Respond to config file changes. Signed-off-by: Frank Ch. Eigler --- handlers/restart_services.yml | 3 +++ playbooks/groups/debuginfod.yml | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/handlers/restart_services.yml b/handlers/restart_services.yml index 29c46c13e8..a0593ce5f6 100644 --- a/handlers/restart_services.yml +++ b/handlers/restart_services.yml @@ -216,3 +216,6 @@ - name: restart systemd-oomd service: name=systemd-oomd state=reload + +- name: restart debuginfod + service: name=debuginfod state=restarted diff --git a/playbooks/groups/debuginfod.yml b/playbooks/groups/debuginfod.yml index ff38f9b39b..59fff69d7b 100644 --- a/playbooks/groups/debuginfod.yml +++ b/playbooks/groups/debuginfod.yml @@ -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: