summaryrefslogtreecommitdiff
path: root/roles/repo_service/tasks/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/repo_service/tasks/main.yaml')
-rw-r--r--roles/repo_service/tasks/main.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/repo_service/tasks/main.yaml b/roles/repo_service/tasks/main.yaml
index b17319c..19139e0 100644
--- a/roles/repo_service/tasks/main.yaml
+++ b/roles/repo_service/tasks/main.yaml
@@ -12,3 +12,16 @@
become: yes
become_user: repo_service
become_method: su
+
+- name: Create systemd service
+ copy:
+ src=repo_service.service
+ dest=/etc/systemd/system/repo_service.service
+ notify:
+ - Reload systemd daemons
+ - Restart repo_service
+
+- name: Enable systemd service
+ service:
+ name: repo_service
+ enabled: yes