aboutsummaryrefslogtreecommitdiffstats
path: root/roles/shadowsocks/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/shadowsocks/tasks/main.yml')
-rw-r--r--roles/shadowsocks/tasks/main.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/shadowsocks/tasks/main.yml b/roles/shadowsocks/tasks/main.yml
index bd22af4..c911135 100644
--- a/roles/shadowsocks/tasks/main.yml
+++ b/roles/shadowsocks/tasks/main.yml
@@ -36,7 +36,9 @@
notify: restart-shadowsocks
- name: start service
- command: service shadowsocks start
+ service:
+ name: shadowsocks
+ state: started
- name: show client-side config
vars: