- String, this is the name of the droplet - must be formatted by hostname rules, or the name of a SSH key.
- String, this is the name of the droplet - must be formatted by hostname rules, or the name of a SSH key, or the name of a domain.
unique_name:
description:
- Bool, require unique hostnames. By default, digital ocean allows multiple hosts with the same name. Setting this to "yes" allows only one host per name. Useful for idempotence.
...
...
@@ -75,6 +75,9 @@ options:
ssh_pub_key:
description:
- The public SSH key you want to add to your account.
ip:
description:
- The IP address to point a domain at.
notes:
- Two environment variables can be used, DO_CLIENT_ID and DO_API_KEY.
...
...
@@ -141,6 +144,31 @@ EXAMPLES = '''
size_id=1
region_id=2
image_id=3
# Create a domain record
- digital_ocean: >
state=present
command=domain
name=my.digitalocean.domain
ip=127.0.0.1
# Create a droplet and a corresponding domain record