mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 02:03:09 +00:00
Fix missing restart method
Script was missing the restart command
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user