summaryrefslogtreecommitdiffstats
path: root/roles/upload
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2024-10-01 19:59:03 -0400
committerSacha Chua <sacha@sachachua.com>2024-10-01 19:59:03 -0400
commit2be81b299be9cad0b03495f2ea038a01969c6cb2 (patch)
tree6f798cdf8233d0c1079eaff3a52fd3bdabf8bdf7 /roles/upload
parenta50799ae2d27ea57f9f470a9ecfb06dd77499c34 (diff)
downloademacsconf-ansible-2be81b299be9cad0b03495f2ea038a01969c6cb2.tar.xz
emacsconf-ansible-2be81b299be9cad0b03495f2ea038a01969c6cb2.zip
Update for new ansible version
Diffstat (limited to 'roles/upload')
-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