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