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