From 6ca492561861ece9aa46718a4a92e7d9523d24d9 Mon Sep 17 00:00:00 2001 From: SkaveRat Date: Thu, 12 Feb 2015 20:08:18 +0100 Subject: [PATCH] Fix missing restart method Script was missing the restart command --- lib/ansible/modules/extras/system/svc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/extras/system/svc.py b/lib/ansible/modules/extras/system/svc.py index 05ef51afd99..663126163e9 100755 --- a/lib/ansible/modules/extras/system/svc.py +++ b/lib/ansible/modules/extras/system/svc.py @@ -191,6 +191,9 @@ class Svc(object): def reload(self): return self.execute_command([self.svc_cmd, '-1', self.svc_full]) + def restart(self): + return self.execute_command([self.svc_cmd, '-t', self.svc_full]) + def execute_command(self, cmd): try: (rc, out, err) = self.module.run_command(' '.join(cmd))