From 826c2e0862fd568a2cc1eb808d8ecb36b1b9a670 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 19 Sep 2019 19:20:02 +0800 Subject: shadowsocks: Use the 'service' module instead of ad-hoc command --- roles/shadowsocks/handlers/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'roles/shadowsocks/handlers') diff --git a/roles/shadowsocks/handlers/main.yml b/roles/shadowsocks/handlers/main.yml index f165bc8..280568b 100644 --- a/roles/shadowsocks/handlers/main.yml +++ b/roles/shadowsocks/handlers/main.yml @@ -1,3 +1,5 @@ --- - name: restart-shadowsocks - command: service shadowsocks restart + service: + name: shadowsocks + state: restarted -- cgit v1.2.2