diff options
author | Ralph Bean <rbean@redhat.com> | 2017-08-18 13:51:22 +0000 |
---|---|---|
committer | Ralph Bean <rbean@redhat.com> | 2017-08-18 13:51:22 +0000 |
commit | 2a9ea19315ce4b20e0b9f486bf49b7f977ed03a2 (patch) | |
tree | b9b520e3b101e052dd1b67ed941e8f99a0371628 | |
parent | aaf5341e50732422c7fb94f32ee5cde1669e4bd0 (diff) | |
download | ansible-2a9ea19315ce4b20e0b9f486bf49b7f977ed03a2.tar.gz ansible-2a9ea19315ce4b20e0b9f486bf49b7f977ed03a2.tar.xz ansible-2a9ea19315ce4b20e0b9f486bf49b7f977ed03a2.zip |
extend the fedwatch systemd configuration to restart on failure
-rw-r--r-- | roles/bodhi2/backend/files/fedwatch.service | 4 | ||||
-rw-r--r-- | roles/bodhi2/backend/tasks/main.yml | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/roles/bodhi2/backend/files/fedwatch.service b/roles/bodhi2/backend/files/fedwatch.service new file mode 100644 index 000000000..0e5bd9888 --- /dev/null +++ b/roles/bodhi2/backend/files/fedwatch.service @@ -0,0 +1,4 @@ +[Service] +User=fedmsg +Group=fedmsg +Restart=on-failure diff --git a/roles/bodhi2/backend/tasks/main.yml b/roles/bodhi2/backend/tasks/main.yml index c49fd2fa3..aeddd839f 100644 --- a/roles/bodhi2/backend/tasks/main.yml +++ b/roles/bodhi2/backend/tasks/main.yml @@ -172,6 +172,16 @@ - bodhi - cron +- 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" + notify: + - reload systemd + - restart fedwatch + tags: + - bodhi + - fedwatch + - name: configure fedwatch to sync packages as soon as requests are process. copy: src=fedwatch.conf dest=/etc/fedwatch.conf when: inventory_hostname.startswith('bodhi-backend01') and env == "production" |