|
|
@ -21,7 +21,7 @@ module: digital_ocean_droplet
|
|
|
|
short_description: Create/delete a droplet in DigitalOcean
|
|
|
|
short_description: Create/delete a droplet in DigitalOcean
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Create/delete a droplet in DigitalOcean and optionally waits for it to be 'running'.
|
|
|
|
- Create/delete a droplet in DigitalOcean and optionally waits for it to be 'running'.
|
|
|
|
version_added: "1.4"
|
|
|
|
version_added: "1.6"
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
state:
|
|
|
|
state:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -314,7 +314,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
|
|
|
|
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
|
|
|
from ansible.module_utils.basic import *
|
|
|
|
|
|
|
|
|
|
|
|
main()
|
|
|
|
main()
|
|
|
|