summaryrefslogtreecommitdiffstats
path: root/roles/upload/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--roles/upload/tasks/main.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/roles/upload/tasks/main.yml b/roles/upload/tasks/main.yml
index 3e7e615..ca87a1c 100644
--- a/roles/upload/tasks/main.yml
+++ b/roles/upload/tasks/main.yml
@@ -111,7 +111,15 @@
when: not use_initd
- name: Restart Upload
become: true
+ when: upload_enabled
service:
name: upload
state: restarted
- enabled: yes
+ enabled: true
+- name: Stop upload
+ become: true
+ when: not upload_enabled
+ service:
+ name: upload
+ state: stopped
+ enabled: false