mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-05-11 20:12:14 +00:00
Compare commits
2 Commits
main
...
a91f49212f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a91f49212f | ||
|
|
385a562148 |
@@ -418,6 +418,13 @@ def main():
|
|||||||
if module.params['state'] == 'present' and module.params['value'] == '':
|
if module.params['state'] == 'present' and module.params['value'] == '':
|
||||||
module.fail_json(msg="value cannot be blank")
|
module.fail_json(msg="value cannot be blank")
|
||||||
|
|
||||||
|
# System specific tests
|
||||||
|
system = platform.system().lower()
|
||||||
|
if system == 'freebsd':
|
||||||
|
if module.params['sysctl_file'] not in ['/etc/sysctl.conf', '/etc/sysctl.conf.local'] and \
|
||||||
|
module.params['reload']:
|
||||||
|
module.fail_json(msg="%s can not be reloaded. Set reload=False." % module.params['sysctl_file'])
|
||||||
|
|
||||||
result = SysctlModule(module)
|
result = SysctlModule(module)
|
||||||
|
|
||||||
module.exit_json(changed=result.changed)
|
module.exit_json(changed=result.changed)
|
||||||
|
|||||||
Reference in New Issue
Block a user