community.digitalocean.digital_ocean_size_info – Gather information about DigitalOcean Droplet sizes¶
Note
This plugin is part of the community.digitalocean collection (version 1.1.1).
To install it use: ansible-galaxy collection install community.digitalocean
.
To use it in a playbook, specify: community.digitalocean.digital_ocean_size_info
.
Synopsis¶
This module can be used to gather information about droplet sizes.
This module was called
digital_ocean_size_facts
before Ansible 2.9. The usage did not change.
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 2.6
Parameters¶
Examples¶
- name: Gather information about all droplet sizes
community.digitalocean.digital_ocean_size_info:
oauth_token: "{{ oauth_token }}"
- name: Get droplet Size Slug where vcpus is 1
community.digitalocean.digital_ocean_size_info:
oauth_token: "{{ oauth_token }}"
register: resp_out
- debug: var=resp_out
- set_fact:
size_slug: "{{ item.slug }}"
loop: "{{ resp_out.data | community.general.json_query(name) }}"
vars:
name: "[?vcpus==`1`]"
- debug:
var: size_slug
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Abhijeet Kasurde (@Akasurde)