From d36bea766d49010a758a90cfea3b7aaefc4e13df Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 26 Oct 2016 21:11:40 -0400 Subject: [PATCH] make sure all svcadm operations are syncronous fixes #5296 --- lib/ansible/modules/system/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/system/service.py b/lib/ansible/modules/system/service.py index 18b76d32c6..d216e683ca 100644 --- a/lib/ansible/modules/system/service.py +++ b/lib/ansible/modules/system/service.py @@ -1365,9 +1365,9 @@ class SunOSService(Service): elif self.action == 'stop': subcmd = "disable -st" elif self.action == 'reload': - subcmd = "refresh" + subcmd = "refresh -s" elif self.action == 'restart' and status == 'online': - subcmd = "restart" + subcmd = "restart -s" elif self.action == 'restart' and status != 'online': subcmd = "enable -rst"