summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@humppa.nl>2017-01-25 20:01:03 +0100
committerBrian Coca <bcoca@users.noreply.github.com>2017-01-25 14:51:55 -0500
commit4a594b3702b01adccb44babdeadfcdc013a67c26 (patch)
tree3ead5d18be7a0ac1686ba18b0880c1bdf1590962
parenta412be32b58473f932947c5be602989377b34e66 (diff)
downloadansible-4a594b3702b01adccb44babdeadfcdc013a67c26.tar.gz
Synchronous actions were introduced in Solaris 11.2 to be precise.
-rw-r--r--lib/ansible/modules/system/service.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/modules/system/service.py b/lib/ansible/modules/system/service.py
index fe7b08b30a..5b6d7479ad 100644
--- a/lib/ansible/modules/system/service.py
+++ b/lib/ansible/modules/system/service.py
@@ -1310,10 +1310,10 @@ class SunOSService(Service):
def svcadm_supports_sync(self):
# Support for synchronous restart/refresh is only supported on
- # Oracle Solaris >= 11.
+ # Oracle Solaris >= 11.2
for line in open('/etc/release', 'r').readlines():
m = re.match('\s+Oracle Solaris (\d+\.\d+).*', line.rstrip())
- if m and m.groups()[0] > 10:
+ if m and m.groups()[0] >= 11.2:
return True
def get_service_status(self):