summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2016-10-26 21:11:40 -0400
committerBrian Coca <bcoca@users.noreply.github.com>2016-11-01 13:44:42 -0400
commitebcc46fa27de3a62904cd85392b50598271905d2 (patch)
treec0f2f559929ac4c812e3e66a0f300978078d8f73
parentd2106f1c929908aaeaeb53a77f71a1b9b0d59049 (diff)
downloadansible-modules-core-ebcc46fa27de3a62904cd85392b50598271905d2.tar.gz
make sure all svcadm operations are syncronous
fixes #5296
-rw-r--r--system/service.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/service.py b/system/service.py
index 18b76d32..d216e683 100644
--- a/system/service.py
+++ b/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"