|
|
@ -189,8 +189,9 @@ class SysctlModule(object):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# system supports reloading via the -p flag to sysctl, so we'll use that
|
|
|
|
# system supports reloading via the -p flag to sysctl, so we'll use that
|
|
|
|
rc,out,err = self.module.run_command([self.sysctl_cmd, '-p', self.sysctl_file])
|
|
|
|
rc,out,err = self.module.run_command([self.sysctl_cmd, '-p', self.sysctl_file])
|
|
|
|
|
|
|
|
|
|
|
|
return rc,out+err
|
|
|
|
if rc != 0:
|
|
|
|
|
|
|
|
self.module.fail_json(msg="Failed to reload sysctl: %s" % str(out) + str(err))
|
|
|
|
|
|
|
|
|
|
|
|
# ==============================================================
|
|
|
|
# ==============================================================
|
|
|
|
# SYSCTL FILE MANAGEMENT
|
|
|
|
# SYSCTL FILE MANAGEMENT
|
|
|
|