From 44b0e320632c4c26bbe40b1437c970ebf9960454 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 24 Aug 2023 12:59:13 -0700 Subject: [PATCH] Restart matrix-eavesdrop when config changes Change-Id: I8b8846d5451159ddf17966a58526f70ab3a258dc --- playbooks/roles/matrix-eavesdrop/handlers/main.yaml | 4 ++++ playbooks/roles/matrix-eavesdrop/tasks/main.yaml | 1 + 2 files changed, 5 insertions(+) create mode 100644 playbooks/roles/matrix-eavesdrop/handlers/main.yaml diff --git a/playbooks/roles/matrix-eavesdrop/handlers/main.yaml b/playbooks/roles/matrix-eavesdrop/handlers/main.yaml new file mode 100644 index 0000000000..30f5131a4b --- /dev/null +++ b/playbooks/roles/matrix-eavesdrop/handlers/main.yaml @@ -0,0 +1,4 @@ +- name: Restart matrix-eavesdrop + shell: + cmd: docker-compose restart eavesdrop + chdir: /etc/matrix-eavesdrop-docker/ diff --git a/playbooks/roles/matrix-eavesdrop/tasks/main.yaml b/playbooks/roles/matrix-eavesdrop/tasks/main.yaml index 6e00fea949..6f2ddd52bd 100644 --- a/playbooks/roles/matrix-eavesdrop/tasks/main.yaml +++ b/playbooks/roles/matrix-eavesdrop/tasks/main.yaml @@ -14,6 +14,7 @@ owner: root group: root mode: 0644 + notify: Restart matrix-eavesdrop - name: Ensure /etc/matrix-eavesdrop-docker directory file: