|
|
#!/usr/bin/python
|
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
|
|
ANSIBLE_METADATA = {
|
|
|
'metadata_version': '1.0',
|
...
|
...
|
@@ -74,7 +75,7 @@ def run_module(): |
|
|
message=''
|
|
|
)
|
|
|
|
|
|
module = AnsibleModule(
|
|
|
module = AnsibleModule(
|
|
|
argument_spec=module_args,
|
|
|
supports_check_mode=True
|
|
|
)
|
...
|
...
|
@@ -95,7 +96,7 @@ def run_module(): |
|
|
r, msg = check_http_status(url, content_type, params)
|
|
|
if not r:
|
|
|
module.fail_json(msg='Check Failed: %s' %msg, **result)
|
|
|
module.exit_json(**result)
|
|
|
module.exit_json(**result)
|
|
|
|
|
|
def main():
|
|
|
run_module()
|
...
|
...
|
|