diff --git a/monitoring/zabbix_screen.py b/monitoring/zabbix_screen.py index 932681617f5..5ada0447571 100644 --- a/monitoring/zabbix_screen.py +++ b/monitoring/zabbix_screen.py @@ -415,5 +415,7 @@ def main(): else: module.exit_json(changed=False) -# <> -main() +from ansible.module_utils.basic import * + +if __name__ == '__main__': + main() diff --git a/network/f5/bigip_facts.py b/network/f5/bigip_facts.py index 4522d61bbad..7b78c6d97f7 100755 --- a/network/f5/bigip_facts.py +++ b/network/f5/bigip_facts.py @@ -1684,6 +1684,8 @@ def main(): module.exit_json(**result) # include magic from lib/ansible/module_common.py -#<> -main() +from ansible.module_utils.basic import * + +if __name__ == '__main__': + main() diff --git a/packaging/os/homebrew.py b/packaging/os/homebrew.py index f6d63b17d3c..b519efa071f 100644 --- a/packaging/os/homebrew.py +++ b/packaging/os/homebrew.py @@ -834,5 +834,8 @@ def main(): module.exit_json(changed=changed, msg=message) # this is magic, see lib/ansible/module_common.py -#<> -main() +from ansible.module_utils.basic import * + +if __name__ == '__main__': + main() + diff --git a/packaging/os/homebrew_cask.py b/packaging/os/homebrew_cask.py index 292da6c7f59..bb5cacabbc7 100644 --- a/packaging/os/homebrew_cask.py +++ b/packaging/os/homebrew_cask.py @@ -509,5 +509,8 @@ def main(): module.exit_json(changed=changed, msg=message) # this is magic, see lib/ansible/module_common.py -#<> -main() +from ansible.module_utils.basic import * + +if __name__ == '__main__': + main() + diff --git a/packaging/os/homebrew_tap.py b/packaging/os/homebrew_tap.py index 1e0b6b66169..504e77eb062 100644 --- a/packaging/os/homebrew_tap.py +++ b/packaging/os/homebrew_tap.py @@ -211,5 +211,7 @@ def main(): module.exit_json(changed=changed, msg=msg) # this is magic, see lib/ansible/module_common.py -#<> -main() +from ansible.module_utils.basic import * + +if __name__ == '__main__': + main()