From 97dc2a1ab96de44f211e6199610235f887cd37b3 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Fri, 15 May 2020 03:00:45 +0200 Subject: [PATCH] systemd service unit --- tasks/setup.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tasks/setup.yaml b/tasks/setup.yaml index 3b15a9a..278e8f4 100644 --- a/tasks/setup.yaml +++ b/tasks/setup.yaml @@ -5,3 +5,12 @@ name: - buildbot-worker executable: pip3 + +# source of unit file from https://github.com/buildbot/buildbot-contrib/blob/master/worker/contrib/systemd/buildbot-worker%40.service +- name: buildbot-worker systemd service unit + copy: + src: systemd/buildbot-worker@.service + dest: /etc/systemd/system/buildbot-worker@.service + notify: + - systemd daemon reload + - restart buildbot-worker service