From 7f4b56891fbd22a0ec0520cedc5f57ef8588da0d Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Fri, 18 Aug 2017 13:53:12 +0000 Subject: [PATCH] Make directory for fedwatch systemd config extension --- roles/bodhi2/backend/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/bodhi2/backend/tasks/main.yml b/roles/bodhi2/backend/tasks/main.yml index aeddd839f6..63ee0aea9d 100644 --- a/roles/bodhi2/backend/tasks/main.yml +++ b/roles/bodhi2/backend/tasks/main.yml @@ -172,6 +172,13 @@ - bodhi - cron +- name: Make directory for fedwatch systemd config extension + copy: path=/usr/lib/systemd/system/fedwatch.service.d/ state=directory + when: inventory_hostname.startswith('bodhi-backend01') and env == "production" + tags: + - bodhi + - fedwatch + - name: extend the fedwatch systemd configuration to restart on failure copy: src=fedwatch.service dest=/usr/lib/systemd/system/fedwatch.service.d/fedwatch.conf when: inventory_hostname.startswith('bodhi-backend01') and env == "production"