Fixes #5023 Convert all modules to use new snippet import pattern
This commit is contained in:
parent
33f9fd31e9
commit
38edad70ac
141 changed files with 178 additions and 178 deletions
|
@ -294,6 +294,6 @@ def main():
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -420,6 +420,6 @@ def main():
|
||||||
module.fail_json(msg=str(e))
|
module.fail_json(msg=str(e))
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -480,6 +480,6 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -414,6 +414,6 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -417,6 +417,6 @@ def main():
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -328,6 +328,6 @@ def main():
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -268,6 +268,6 @@ def main():
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -250,6 +250,6 @@ def main():
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -244,6 +244,6 @@ def main():
|
||||||
_glance_delete_image(module, module.params, client)
|
_glance_delete_image(module, module.params, client)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module.params['common.py
|
# this is magic, see lib/ansible/module.params['common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -386,6 +386,6 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -483,6 +483,6 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -248,6 +248,6 @@ def main():
|
||||||
_delete_server(module, nova)
|
_delete_server(module, nova)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module.params['common.py
|
# this is magic, see lib/ansible/module.params['common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,6 @@ def main():
|
||||||
module.exit_json(changed = False, result = "not present")
|
module.exit_json(changed = False, result = "not present")
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module.params['common.py
|
# this is magic, see lib/ansible/module.params['common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -416,6 +416,6 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -236,6 +236,6 @@ def main():
|
||||||
module.exit_json(changed=False)
|
module.exit_json(changed=False)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module.params['common.py
|
# this is magic, see lib/ansible/module.params['common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -213,6 +213,6 @@ def main():
|
||||||
module.exit_json(changed = True, result = "detached")
|
module.exit_json(changed = True, result = "detached")
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module.params['common.py
|
# this is magic, see lib/ansible/module.params['common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -275,6 +275,6 @@ def main():
|
||||||
module.exit_json(changed = True, result = "Deleted")
|
module.exit_json(changed = True, result = "Deleted")
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module.params['common.py
|
# this is magic, see lib/ansible/module.params['common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -206,6 +206,6 @@ def main():
|
||||||
module.exit_json(changed=True, result="deleted")
|
module.exit_json(changed=True, result="deleted")
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module.params['common.py
|
# this is magic, see lib/ansible/module.params['common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -209,6 +209,6 @@ def main():
|
||||||
module.exit_json(changed=True, result="Deleted")
|
module.exit_json(changed=True, result="Deleted")
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module.params['common.py
|
# this is magic, see lib/ansible/module.params['common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -245,6 +245,6 @@ def main():
|
||||||
module.exit_json(changed=True, result="Deleted")
|
module.exit_json(changed=True, result="Deleted")
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module.params['common.py
|
# this is magic, see lib/ansible/module.params['common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -281,6 +281,6 @@ def main():
|
||||||
module.exit_json(changed = True, result = "deleted")
|
module.exit_json(changed = True, result = "deleted")
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module.params['common.py
|
# this is magic, see lib/ansible/module.params['common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -534,6 +534,6 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -478,5 +478,5 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -156,8 +156,8 @@ def main():
|
||||||
changed = True
|
changed = True
|
||||||
)
|
)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
# only the command module should ever need to do this
|
# only the command module should ever need to do this
|
||||||
# everything else should be simple key=value
|
# everything else should be simple key=value
|
||||||
|
|
|
@ -214,5 +214,5 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -302,5 +302,5 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -364,5 +364,5 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -462,5 +462,5 @@ def main():
|
||||||
module.exit_json(changed=changed, user=user)
|
module.exit_json(changed=changed, user=user)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -212,5 +212,5 @@ def main():
|
||||||
module.fail_json(msg=result, changed=False)
|
module.fail_json(msg=result, changed=False)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -270,5 +270,5 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -608,5 +608,5 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -482,5 +482,5 @@ def main():
|
||||||
module.exit_json(**kw)
|
module.exit_json(**kw)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -277,5 +277,5 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -250,6 +250,6 @@ def main():
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -192,6 +192,6 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -174,7 +174,7 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -185,5 +185,5 @@ def main():
|
||||||
module.exit_json(**res_args)
|
module.exit_json(**res_args)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -350,6 +350,6 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -185,5 +185,5 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -357,6 +357,6 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -134,6 +134,6 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -237,8 +237,8 @@ def main():
|
||||||
return module.exit_json(changed=changed, msg=out.replace(changed_marker,''),
|
return module.exit_json(changed=changed, msg=out.replace(changed_marker,''),
|
||||||
rc=rc, cmd=cmdstr)
|
rc=rc, cmd=cmdstr)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -195,5 +195,5 @@ def main():
|
||||||
module.exit_json(**res_args)
|
module.exit_json(**res_args)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -201,6 +201,6 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -95,5 +95,5 @@ def main():
|
||||||
module.exit_json(**data)
|
module.exit_json(**data)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -147,5 +147,5 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -126,5 +126,5 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -244,5 +244,5 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -142,5 +142,5 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -127,6 +127,6 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -266,7 +266,7 @@ def main():
|
||||||
|
|
||||||
module.exit_json(status=result,changed=True)
|
module.exit_json(status=result,changed=True)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -134,5 +134,5 @@ def post_event(module):
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -143,6 +143,6 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -876,5 +876,5 @@ class Nagios(object):
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -157,6 +157,6 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -159,6 +159,6 @@ def main():
|
||||||
|
|
||||||
module.exit_json(msg="success", result=out)
|
module.exit_json(msg="success", result=out)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -130,6 +130,6 @@ def main():
|
||||||
|
|
||||||
module.exit_json(checkid=checkid, name=name, status=result)
|
module.exit_json(checkid=checkid, name=name, status=result)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -254,6 +254,6 @@ def main():
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -332,6 +332,6 @@ def main():
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -319,6 +319,6 @@ def main():
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -302,6 +302,6 @@ def main():
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -443,7 +443,7 @@ def main():
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -465,7 +465,7 @@ def main():
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -288,7 +288,7 @@ def main():
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -530,7 +530,7 @@ def main():
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -372,7 +372,7 @@ def main():
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -337,5 +337,5 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -176,5 +176,5 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -126,5 +126,5 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -130,5 +130,5 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -364,5 +364,5 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -69,7 +69,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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -421,5 +421,5 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -129,5 +129,5 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -195,6 +195,6 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -84,5 +84,5 @@ def main():
|
||||||
module.exit_json(msg="OK")
|
module.exit_json(msg="OK")
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -140,5 +140,5 @@ def main():
|
||||||
msg=msg)
|
msg=msg)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -155,5 +155,5 @@ def main():
|
||||||
msg=msg)
|
msg=msg)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -142,5 +142,5 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -248,5 +248,5 @@ def main():
|
||||||
module.exit_json(changed=False)
|
module.exit_json(changed=False)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -176,5 +176,5 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -72,5 +72,5 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -435,6 +435,6 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -238,6 +238,6 @@ def main():
|
||||||
|
|
||||||
module.exit_json(changed=changed, **return_values)
|
module.exit_json(changed=changed, **return_values)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -382,6 +382,6 @@ 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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -180,6 +180,6 @@ def main():
|
||||||
name=name, virtualenv=env)
|
name=name, virtualenv=env)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -222,6 +222,6 @@ def main():
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -171,6 +171,6 @@ def main():
|
||||||
remove_packages(module, brew_path, pkgs)
|
remove_packages(module, brew_path, pkgs)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -210,6 +210,6 @@ def main():
|
||||||
deactivate_packages(module, port_path, pkgs)
|
deactivate_packages(module, port_path, pkgs)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -224,5 +224,5 @@ def main():
|
||||||
module.exit_json(changed=changed)
|
module.exit_json(changed=changed)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -277,5 +277,5 @@ def main():
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -144,6 +144,6 @@ def main():
|
||||||
remove_packages(module, opkg_path, pkgs)
|
remove_packages(module, opkg_path, pkgs)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -213,6 +213,6 @@ def main():
|
||||||
remove_packages(module, pkgs)
|
remove_packages(module, pkgs)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -347,6 +347,6 @@ def main():
|
||||||
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
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -163,6 +163,6 @@ def main():
|
||||||
remove_packages(module, pkgin_path, pkgs)
|
remove_packages(module, pkgin_path, pkgs)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -156,6 +156,6 @@ def main():
|
||||||
remove_packages(module, pkgin_path, pkgs)
|
remove_packages(module, pkgin_path, pkgs)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -173,6 +173,6 @@ def main():
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -203,6 +203,6 @@ def main():
|
||||||
remove_packages(module, pkgs)
|
remove_packages(module, pkgs)
|
||||||
|
|
||||||
# this is magic, see lib/ansible/module_common.py
|
# this is magic, see lib/ansible/module_common.py
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -411,6 +411,6 @@ def main():
|
||||||
module.exit_json(changed=True, msg="System successfully unregistered from %s." % server_hostname)
|
module.exit_json(changed=True, msg="System successfully unregistered from %s." % server_hostname)
|
||||||
|
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -147,6 +147,6 @@ def main():
|
||||||
client.auth.logout(session)
|
client.auth.logout(session)
|
||||||
|
|
||||||
|
|
||||||
# include magic from lib/ansible/module_common.py
|
# import module snippets
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
from ansible.module_utils.basic import *
|
||||||
main()
|
main()
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue