Chapter 8, Moving to the Cloud
- What is the name of the Python module we need to install to support the
digital_ocean
module?
The module is called dopy
- True or false: You should always encrypt sensitive values such as the DigitalOcean personal access token.
True
- Which filter are we using to find the ID of the SSH key we need to launch our Droplet with?
The filter will be [?name=='Ansible']
- State and explain why we used the
unique_name
option in thedigital_ocean
task.
To ensure we do not launch multiple droplets with the same name with each playbook run.
- What is the correct syntax for accessing variables from another Ansible host?
Using hostvars
, for example using {{ hostvars['localhost'].droplet_ip }}
, which has been registered on the Ansible Controller.
- True or false: The
add_server
module is used to add our Droplet to the host group.
False