1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Addresses #5023 Fix import comments

This commit is contained in:
James Tanner 2013-12-02 15:13:49 -05:00
parent 6000d636b3
commit ad837709bd
94 changed files with 94 additions and 94 deletions

View file

@ -293,7 +293,7 @@ def main():
module.exit_json(**result) module.exit_json(**result)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -419,7 +419,7 @@ def main():
except (DoError, Exception) as e: except (DoError, Exception) as e:
module.fail_json(msg=str(e)) module.fail_json(msg=str(e))
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -479,7 +479,7 @@ def main():
changed = manager.has_changed() changed = manager.has_changed()
module.exit_json(failed=True, changed=changed, msg=repr(e)) module.exit_json(failed=True, changed=changed, msg=repr(e))
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -413,7 +413,7 @@ def main():
module.fail_json(msg="Bucket and Object parameters must be set", failed=True) module.fail_json(msg="Bucket and Object parameters must be set", failed=True)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -416,7 +416,7 @@ def main():
print json.dumps(json_output) print json.dumps(json_output)
sys.exit(0) sys.exit(0)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -327,7 +327,7 @@ def main():
print json.dumps(json_output) print json.dumps(json_output)
sys.exit(0) sys.exit(0)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -267,7 +267,7 @@ def main():
print json.dumps(json_output) print json.dumps(json_output)
sys.exit(0) sys.exit(0)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -249,7 +249,7 @@ def main():
print json.dumps(json_output) print json.dumps(json_output)
sys.exit(0) sys.exit(0)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -385,7 +385,7 @@ def dispatch(keystone, user=None, password=None, tenant=None,
return dict(changed=changed, id=id) return dict(changed=changed, id=id)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
if __name__ == '__main__': if __name__ == '__main__':
main() main()

View file

@ -482,7 +482,7 @@ def main():
linodeServers(module, api, state, name, plan, distribution, datacenter, linode_id, linodeServers(module, api, state, name, plan, distribution, datacenter, linode_id,
payment_term, password, ssh_pub_key, swap, wait, wait_timeout) payment_term, password, ssh_pub_key, swap, wait, wait_timeout)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -533,7 +533,7 @@ def main():
module.exit_json(changed=True, instance=d) module.exit_json(changed=True, instance=d)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -477,6 +477,6 @@ def main():
module.exit_json(**result) module.exit_json(**result)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -213,6 +213,6 @@ def main():
module.exit_json(changed=True, user=user) module.exit_json(changed=True, user=user)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -301,6 +301,6 @@ def main():
module.exit_json(changed=changed, db=db) module.exit_json(changed=changed, db=db)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -363,6 +363,6 @@ def main():
else: else:
module.exit_json(msg="Slave already stopped", changed=False) module.exit_json(msg="Slave already stopped", changed=False)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -461,6 +461,6 @@ def main():
changed = False changed = False
module.exit_json(changed=changed, user=user) module.exit_json(changed=changed, user=user)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -211,6 +211,6 @@ def main():
else: else:
module.fail_json(msg=result, changed=False) module.fail_json(msg=result, changed=False)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -269,6 +269,6 @@ def main():
module.exit_json(changed=changed, db=db) module.exit_json(changed=changed, db=db)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -607,6 +607,6 @@ def main():
module.exit_json(changed=changed) module.exit_json(changed=changed)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -481,6 +481,6 @@ def main():
kw['changed'] = changed kw['changed'] = changed
module.exit_json(**kw) module.exit_json(**kw)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -276,6 +276,6 @@ def main():
else: else:
module.fail_json(msg='A valid command must be provided') module.fail_json(msg='A valid command must be provided')
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -249,7 +249,7 @@ def main():
module.exit_json(**result) module.exit_json(**result)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -191,7 +191,7 @@ def main():
msg="%s. %d entries changed" % (msg,changes) msg="%s. %d entries changed" % (msg,changes)
module.exit_json(changed=changed, msg=msg, acl=currentacl) module.exit_json(changed=changed, msg=msg, acl=currentacl)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -173,7 +173,7 @@ def main():
# Mission complete # Mission complete
module.exit_json(src=src, dest=dest, md5sum=destmd5, changed=changed, msg="OK") module.exit_json(src=src, dest=dest, md5sum=destmd5, changed=changed, msg="OK")
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -184,6 +184,6 @@ def main():
module.exit_json(**res_args) module.exit_json(**res_args)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -349,7 +349,7 @@ def main():
else: else:
module.fail_json(path=path, msg='unexpected position reached') module.fail_json(path=path, msg='unexpected position reached')
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -184,6 +184,6 @@ def main():
# Mission complete # Mission complete
module.exit_json(dest=dest, changed=changed, msg="OK") module.exit_json(dest=dest, changed=changed, msg="OK")
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -356,7 +356,7 @@ def main():
absent(module, dest, params['regexp'], params.get('line', None), backup) absent(module, dest, params['regexp'], params.get('line', None), backup)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -133,7 +133,7 @@ def main():
module.exit_json(changed=False, stat=d) module.exit_json(changed=False, stat=d)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -194,6 +194,6 @@ def main():
module.exit_json(**res_args) module.exit_json(**res_args)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -200,7 +200,7 @@ def main():
module.exit_json(changed=changed, msg=msg, xattr=res) module.exit_json(changed=changed, msg=msg, xattr=res)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -94,6 +94,6 @@ def main():
module.exit_json(**data) module.exit_json(**data)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -146,6 +146,6 @@ def main():
module.exit_json(changed=changed, component=component, name=name, vhost=vhost, state=state) module.exit_json(changed=changed, component=component, name=name, vhost=vhost, state=state)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -125,6 +125,6 @@ def main():
changed = len(enabled) > 0 or len(disabled) > 0 changed = len(enabled) > 0 or len(disabled) > 0
module.exit_json(changed=changed, enabled=enabled, disabled=disabled) module.exit_json(changed=changed, enabled=enabled, disabled=disabled)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -243,6 +243,6 @@ def main():
module.exit_json(changed=changed, user=username, state=state) module.exit_json(changed=changed, user=username, state=state)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -141,6 +141,6 @@ def main():
module.exit_json(changed=changed, name=name, state=state) module.exit_json(changed=changed, name=name, state=state)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -126,7 +126,7 @@ def main():
else: else:
module.fail_json(msg="HTTP result code: %d" % result.code) module.fail_json(msg="HTTP result code: %d" % result.code)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -133,6 +133,6 @@ def post_event(module):
except socket.error, e: except socket.error, e:
module.fail_json(msg="Socket error: %s to %s" % (e, uri)) module.fail_json(msg="Socket error: %s to %s" % (e, uri))
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -142,7 +142,7 @@ def main():
module.exit_json(changed=False, name=name, state=state) module.exit_json(changed=False, name=name, state=state)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -875,6 +875,6 @@ class Nagios(object):
changed=True) changed=True)
###################################################################### ######################################################################
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -156,7 +156,7 @@ def main():
else: else:
module.fail_json(msg="result code: %d" % result.code) module.fail_json(msg="result code: %d" % result.code)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -336,6 +336,6 @@ def main():
module.fail_json( module.fail_json(
msg="'%s' is an unknown value for the state argument" % state) msg="'%s' is an unknown value for the state argument" % state)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -175,6 +175,6 @@ def main():
module.exit_json(**result) module.exit_json(**result)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -125,6 +125,6 @@ def main():
br.run() br.run()
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -129,6 +129,6 @@ def main():
port.run() port.run()
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -363,6 +363,6 @@ def main():
module.exit_json(url=url, dest=dest, src=tmpsrc, md5sum=md5sum_src, module.exit_json(url=url, dest=dest, src=tmpsrc, md5sum=md5sum_src,
sha256sum=sha256sum, changed=changed, msg=info.get('msg', '')) sha256sum=sha256sum, changed=changed, msg=info.get('msg', ''))
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -68,7 +68,7 @@ def main():
module.exit_json(content=data, encoding='base64') module.exit_json(content=data, encoding='base64')
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -420,6 +420,6 @@ def main():
module.exit_json(changed=changed, **uresp) module.exit_json(changed=changed, **uresp)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -128,6 +128,6 @@ def main():
module.exit_json(changed=True, room=room, msg=msg, notify=notify) module.exit_json(changed=True, room=room, msg=msg, notify=notify)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -194,7 +194,7 @@ def main():
module.exit_json(changed=False, msg=module.params["msg"]) module.exit_json(changed=False, msg=module.params["msg"])
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -83,6 +83,6 @@ def main():
# Mission complete # Mission complete
module.exit_json(msg="OK") module.exit_json(msg="OK")
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -139,6 +139,6 @@ def main():
module.exit_json(changed=changed, room=room, msg_from=msg_from, module.exit_json(changed=changed, room=room, msg_from=msg_from,
msg=msg) msg=msg)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -154,6 +154,6 @@ def main():
module.exit_json(changed=False, channel=channel, nick=nick, module.exit_json(changed=False, channel=channel, nick=nick,
msg=msg) msg=msg)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -141,6 +141,6 @@ def main():
module.exit_json(changed=False, to=to, user=user, msg=msg.getBody()) module.exit_json(changed=False, to=to, user=user, msg=msg.getBody())
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -247,6 +247,6 @@ def main():
module.exit_json(changed=False) module.exit_json(changed=False)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -175,6 +175,6 @@ def main():
module.exit_json(changed=False, topic=topic) module.exit_json(changed=False, topic=topic)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -71,6 +71,6 @@ def main():
module.exit_json(msg=msg, changed=False) module.exit_json(msg=msg, changed=False)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -434,7 +434,7 @@ def main():
except apt.cache.LockFailedException: except apt.cache.LockFailedException:
module.fail_json(msg="Failed to lock apt for exclusive operation") module.fail_json(msg="Failed to lock apt for exclusive operation")
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -381,7 +381,7 @@ def main():
module.exit_json(changed=changed, repo=repo, state=state) module.exit_json(changed=changed, repo=repo, state=state)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -179,7 +179,7 @@ def main():
module.exit_json(changed=changed, binary=easy_install, module.exit_json(changed=changed, binary=easy_install,
name=name, virtualenv=env) name=name, virtualenv=env)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -170,7 +170,7 @@ def main():
elif p["state"] in ["absent", "removed"]: elif p["state"] in ["absent", "removed"]:
remove_packages(module, brew_path, pkgs) remove_packages(module, brew_path, pkgs)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -209,7 +209,7 @@ def main():
elif p["state"] == "inactive": elif p["state"] == "inactive":
deactivate_packages(module, port_path, pkgs) deactivate_packages(module, port_path, pkgs)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -223,6 +223,6 @@ def main():
module.exit_json(changed=changed) module.exit_json(changed=changed)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -276,6 +276,6 @@ def main():
module.exit_json(**result) module.exit_json(**result)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -143,7 +143,7 @@ def main():
elif p["state"] in ["absent", "removed"]: elif p["state"] in ["absent", "removed"]:
remove_packages(module, opkg_path, pkgs) remove_packages(module, opkg_path, pkgs)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -212,7 +212,7 @@ def main():
elif p["state"] == "absent": elif p["state"] == "absent":
remove_packages(module, pkgs) remove_packages(module, pkgs)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -346,7 +346,7 @@ def main():
module.exit_json(changed=changed, cmd=cmd, name=name, version=version, module.exit_json(changed=changed, cmd=cmd, name=name, version=version,
state=state, requirements=requirements, virtualenv=env, stdout=out, stderr=err) state=state, requirements=requirements, virtualenv=env, stdout=out, stderr=err)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -162,7 +162,7 @@ def main():
elif p["state"] == "absent": elif p["state"] == "absent":
remove_packages(module, pkgin_path, pkgs) remove_packages(module, pkgin_path, pkgs)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -155,7 +155,7 @@ def main():
elif p["state"] == "absent": elif p["state"] == "absent":
remove_packages(module, pkgin_path, pkgs) remove_packages(module, pkgin_path, pkgs)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -202,7 +202,7 @@ def main():
elif p["state"] == "absent": elif p["state"] == "absent":
remove_packages(module, pkgs) remove_packages(module, pkgs)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -188,7 +188,7 @@ def main():
module.exit_json(changed=changed, name=name, state=state, msg=msg) module.exit_json(changed=changed, name=name, state=state, msg=msg)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -202,7 +202,7 @@ def main():
elif p['state'] in [ 'removed', 'absent' ]: elif p['state'] in [ 'removed', 'absent' ]:
remove_packages(module, packages) remove_packages(module, packages)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -737,7 +737,7 @@ def main():
disablerepo, disable_gpg_check) disablerepo, disable_gpg_check)
module.fail_json(msg="we should never get here unless this all failed", **res) module.fail_json(msg="we should never get here unless this all failed", **res)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -224,6 +224,6 @@ def main():
module.exit_json(**result) module.exit_json(**result)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -151,7 +151,7 @@ def main():
module.exit_json(changed=changed, repo=repo, state=state) module.exit_json(changed=changed, repo=repo, state=state)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -383,6 +383,6 @@ def main():
results = enforce_state(module, module.params) results = enforce_state(module, module.params)
module.exit_json(**results) module.exit_json(**results)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -49,7 +49,7 @@ def main():
rc, out, err = module.run_command(cmd, check_rc=True) rc, out, err = module.run_command(cmd, check_rc=True)
module.exit_json(**json.loads(out)) module.exit_json(**json.loads(out))
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -107,6 +107,6 @@ def main():
module.exit_json(changed=changed) module.exit_json(changed=changed)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -136,6 +136,6 @@ def main():
module.exit_json(**args) module.exit_json(**args)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -228,6 +228,6 @@ def main():
module.exit_json(changed=changed) module.exit_json(changed=changed)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -205,6 +205,6 @@ def main():
module.exit_json(changed=changed,msg=msg) module.exit_json(changed=changed,msg=msg)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -94,6 +94,6 @@ def main():
module.exit_json(**args) module.exit_json(**args)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -318,6 +318,6 @@ def main():
module.fail_json(msg='Unexpected position reached') module.fail_json(msg='Unexpected position reached')
sys.exit(0) sys.exit(0)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -48,7 +48,7 @@ def main():
rc, out, err = module.run_command(cmd, check_rc=True) rc, out, err = module.run_command(cmd, check_rc=True)
module.exit_json(**json.loads(out)) module.exit_json(**json.loads(out))
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -370,7 +370,7 @@ def main():
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -2205,6 +2205,6 @@ def main():
data = run_setup(module) data = run_setup(module)
module.exit_json(**data) module.exit_json(**data)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -339,6 +339,6 @@ def main():
module.exit_json(changed=changed, **sysctl_args) module.exit_json(changed=changed, **sysctl_args)
sys.exit(0) sys.exit(0)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -450,6 +450,6 @@ def main():
daemonize(module, password, port, timeout, minutes, ipv6) daemonize(module, password, port, timeout, minutes, ipv6)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -275,6 +275,6 @@ def main():
daemonize(module, password, port, minutes) daemonize(module, password, port, minutes)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -196,6 +196,6 @@ def main():
elapsed = datetime.datetime.now() - start elapsed = datetime.datetime.now() - start
module.exit_json(state=state, port=port, search_regex=search_regex, path=path, elapsed=elapsed.seconds) module.exit_json(state=state, port=port, search_regex=search_regex, path=path, elapsed=elapsed.seconds)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -273,7 +273,7 @@ def main():
module.exit_json(changed=changed, out=out, cmd=cmd, app_path=app_path, virtualenv=virtualenv, module.exit_json(changed=changed, out=out, cmd=cmd, app_path=app_path, virtualenv=virtualenv,
settings=module.params['settings'], pythonpath=module.params['pythonpath']) settings=module.params['settings'], pythonpath=module.params['pythonpath'])
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -211,7 +211,7 @@ def main():
module.fail_json(msg=str(e)) module.fail_json(msg=str(e))
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
if __name__ == '__main__': if __name__ == '__main__':

View file

@ -135,6 +135,6 @@ def main():
module.exit_json(changed=changed) module.exit_json(changed=changed)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()

View file

@ -189,7 +189,7 @@ def main():
module.exit_json(changed=False, name=name, state=state) module.exit_json(changed=False, name=name, state=state)
# this is magic, see lib/ansible/module_common.py # import module snippets
from ansible.module_utils.basic import * from ansible.module_utils.basic import *
main() main()