diff --git a/lib/ansible/modules/extras/web_infrastructure/ejabberd_user.py b/lib/ansible/modules/extras/web_infrastructure/ejabberd_user.py index 0f47167f23d..989145a36f8 100644 --- a/lib/ansible/modules/extras/web_infrastructure/ejabberd_user.py +++ b/lib/ansible/modules/extras/web_infrastructure/ejabberd_user.py @@ -221,4 +221,5 @@ def main(): module.exit_json(**result) -main() +if __name__ == '__main__': + main() diff --git a/lib/ansible/modules/extras/web_infrastructure/jboss.py b/lib/ansible/modules/extras/web_infrastructure/jboss.py index 53ffcf1f840..8957f1b31de 100644 --- a/lib/ansible/modules/extras/web_infrastructure/jboss.py +++ b/lib/ansible/modules/extras/web_infrastructure/jboss.py @@ -147,4 +147,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() + +if __name__ == '__main__': + main() diff --git a/lib/ansible/modules/extras/web_infrastructure/jira.py b/lib/ansible/modules/extras/web_infrastructure/jira.py index 479e623b3c1..e7d1e1a9017 100755 --- a/lib/ansible/modules/extras/web_infrastructure/jira.py +++ b/lib/ansible/modules/extras/web_infrastructure/jira.py @@ -385,5 +385,5 @@ def main(): module.exit_json(changed=True, meta=ret) - -main() +if __name__ == '__main__': + main()