From 17340cbbe21c9bac58d62a785b72e5b7fee48a38 Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 14 May 2019 10:24:24 +0200 Subject: [PATCH] =?UTF-8?q?add=20enable=20sup=C5=B7sonic=20service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 5dc5510..d9b5410 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -81,4 +81,10 @@ become: yes notify: - Reload systemd - - restart supysonic service \ No newline at end of file + - restart supysonic service + +- name: enable supysonic service + systemd: + name: "gunicorn-{{supysonic_name}}.service" # not required. Name of the service. When using in a chroot environment you always need to specify the full name i.e. (crond.service). + enabled: true + become: yes \ No newline at end of file