diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/at.py | 4 | ||||
-rw-r--r-- | system/capabilities.py | 4 | ||||
-rw-r--r-- | system/cronvar.py | 3 | ||||
-rw-r--r-- | system/crypttab.py | 3 | ||||
-rw-r--r-- | system/debconf.py | 3 | ||||
-rw-r--r-- | system/facter.py | 4 | ||||
-rw-r--r-- | system/getent.py | 4 | ||||
-rw-r--r-- | system/gluster_volume.py | 3 | ||||
-rw-r--r-- | system/kernel_blacklist.py | 4 | ||||
-rw-r--r-- | system/known_hosts.py | 3 | ||||
-rw-r--r-- | system/locale_gen.py | 3 | ||||
-rw-r--r-- | system/lvg.py | 4 | ||||
-rw-r--r-- | system/modprobe.py | 3 | ||||
-rw-r--r-- | system/ohai.py | 3 | ||||
-rw-r--r-- | system/open_iscsi.py | 4 | ||||
-rw-r--r-- | system/osx_defaults.py | 3 | ||||
-rw-r--r-- | system/pam_limits.py | 4 | ||||
-rw-r--r-- | system/puppet.py | 3 | ||||
-rw-r--r-- | system/selinux_permissive.py | 4 | ||||
-rw-r--r-- | system/seport.py | 3 | ||||
-rw-r--r-- | system/solaris_zone.py | 4 | ||||
-rwxr-xr-x | system/svc.py | 3 | ||||
-rw-r--r-- | system/ufw.py | 3 | ||||
-rw-r--r-- | system/zfs.py | 4 |
24 files changed, 55 insertions, 28 deletions
diff --git a/system/at.py b/system/at.py index 52006e54..9c5f10b5 100644 --- a/system/at.py +++ b/system/at.py @@ -206,4 +206,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main() diff --git a/system/capabilities.py b/system/capabilities.py index 00950766..67cd66b2 100644 --- a/system/capabilities.py +++ b/system/capabilities.py @@ -189,4 +189,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main() diff --git a/system/cronvar.py b/system/cronvar.py index 4c198d65..1a26182b 100644 --- a/system/cronvar.py +++ b/system/cronvar.py @@ -437,4 +437,5 @@ def main(): module.exit_json(msg="Unable to execute cronvar task.") -main() +if __name__ == '__main__': + main() diff --git a/system/crypttab.py b/system/crypttab.py index 0565f57f..27523415 100644 --- a/system/crypttab.py +++ b/system/crypttab.py @@ -370,4 +370,5 @@ class Options(dict): ret.append('%s=%s' % (k, v)) return ','.join(ret) -main() +if __name__ == '__main__': + main() diff --git a/system/debconf.py b/system/debconf.py index 468f0b57..3c9218b4 100644 --- a/system/debconf.py +++ b/system/debconf.py @@ -188,4 +188,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() +if __name__ == '__main__': + main() diff --git a/system/facter.py b/system/facter.py index b594836d..d9a7d65c 100644 --- a/system/facter.py +++ b/system/facter.py @@ -57,5 +57,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() - +if __name__ == '__main__': + main() diff --git a/system/getent.py b/system/getent.py index 2b70a285..d200d420 100644 --- a/system/getent.py +++ b/system/getent.py @@ -157,5 +157,5 @@ def main(): module.fail_json(msg=msg) -main() - +if __name__ == '__main__': + main() diff --git a/system/gluster_volume.py b/system/gluster_volume.py index f5bca5f9..f34511a3 100644 --- a/system/gluster_volume.py +++ b/system/gluster_volume.py @@ -522,4 +522,5 @@ def main(): module.exit_json(changed=changed, ansible_facts=facts) -main() +if __name__ == '__main__': + main() diff --git a/system/kernel_blacklist.py b/system/kernel_blacklist.py index 2100b158..701ba883 100644 --- a/system/kernel_blacklist.py +++ b/system/kernel_blacklist.py @@ -140,4 +140,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main() diff --git a/system/known_hosts.py b/system/known_hosts.py index 40c13002..656fb38d 100644 --- a/system/known_hosts.py +++ b/system/known_hosts.py @@ -305,4 +305,5 @@ def main(): results = enforce_state(module,module.params) module.exit_json(**results) -main() +if __name__ == '__main__': + main() diff --git a/system/locale_gen.py b/system/locale_gen.py index 57e79a25..bd4b149d 100644 --- a/system/locale_gen.py +++ b/system/locale_gen.py @@ -238,4 +238,5 @@ def main(): module.exit_json(name=name, changed=changed, msg="OK") -main() +if __name__ == '__main__': + main() diff --git a/system/lvg.py b/system/lvg.py index d0b0409a..427cb1b1 100644 --- a/system/lvg.py +++ b/system/lvg.py @@ -260,4 +260,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main() diff --git a/system/modprobe.py b/system/modprobe.py index 1acd2ef3..ef5a9dd4 100644 --- a/system/modprobe.py +++ b/system/modprobe.py @@ -127,4 +127,5 @@ def main(): module.exit_json(**args) -main() +if __name__ == '__main__': + main() diff --git a/system/ohai.py b/system/ohai.py index d71d581b..222a81e6 100644 --- a/system/ohai.py +++ b/system/ohai.py @@ -53,4 +53,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() +if __name__ == '__main__': + main() diff --git a/system/open_iscsi.py b/system/open_iscsi.py index 77586289..71eeda1a 100644 --- a/system/open_iscsi.py +++ b/system/open_iscsi.py @@ -381,5 +381,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() - +if __name__ == '__main__': + main() diff --git a/system/osx_defaults.py b/system/osx_defaults.py index 986a263e..12a3ec8f 100644 --- a/system/osx_defaults.py +++ b/system/osx_defaults.py @@ -412,4 +412,5 @@ def main(): # /main ------------------------------------------------------------------- }}} -main() +if __name__ == '__main__': + main() diff --git a/system/pam_limits.py b/system/pam_limits.py index 23fa3572..5b5cc358 100644 --- a/system/pam_limits.py +++ b/system/pam_limits.py @@ -281,4 +281,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main() diff --git a/system/puppet.py b/system/puppet.py index 411552d8..6686682c 100644 --- a/system/puppet.py +++ b/system/puppet.py @@ -284,4 +284,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() +if __name__ == '__main__': + main() diff --git a/system/selinux_permissive.py b/system/selinux_permissive.py index 6374f94b..e18eb2fb 100644 --- a/system/selinux_permissive.py +++ b/system/selinux_permissive.py @@ -131,5 +131,5 @@ def main(): permissive=permissive, domain=domain) - -main() +if __name__ == '__main__': + main() diff --git a/system/seport.py b/system/seport.py index c661db43..0e8c7619 100644 --- a/system/seport.py +++ b/system/seport.py @@ -316,4 +316,5 @@ def main(): module.exit_json(**result) -main() +if __name__ == '__main__': + main() diff --git a/system/solaris_zone.py b/system/solaris_zone.py index f5764913..aa569d7e 100644 --- a/system/solaris_zone.py +++ b/system/solaris_zone.py @@ -477,4 +477,6 @@ def main(): module.exit_json(changed=zone.changed, msg=', '.join(zone.msg)) from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main() diff --git a/system/svc.py b/system/svc.py index 376062b4..43eea5b0 100755 --- a/system/svc.py +++ b/system/svc.py @@ -312,4 +312,5 @@ def main(): -main() +if __name__ == '__main__': + main() diff --git a/system/ufw.py b/system/ufw.py index 67eaba13..c0f48fca 100644 --- a/system/ufw.py +++ b/system/ufw.py @@ -329,4 +329,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() +if __name__ == '__main__': + main() diff --git a/system/zfs.py b/system/zfs.py index 47ce13ed..7dda883b 100644 --- a/system/zfs.py +++ b/system/zfs.py @@ -272,4 +272,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main() |