ansible / ansible.builtin / v2.8.17 / module / hcloud_datacenter_facts Gather facts about the Hetzner Cloud datacenters. | "added in version" 2.8 of ansible.builtin" Authors: Lukas Kaemmerling (@lkaemmerling) preview | supported by communityansible.builtin.hcloud_datacenter_facts (v2.8.17) — module
pip
Install with pip install ansible==2.8.17
Gather facts about your Hetzner Cloud datacenters.
- name: Gather hcloud datacenter facts local_action: module: hcloud_datacenter_facts
- name: Print the gathered facts debug: var: ansible_facts.hcloud_datacenter_facts
id: description: - The ID of the datacenter you want to get. type: int name: description: - The name of the datacenter you want to get. type: str endpoint: default: https://api.hetzner.cloud/v1 description: - This is the API Endpoint for the Hetzner Cloud. type: str api_token: description: - This is the API Token for the Hetzner Cloud. - You can also set this option by using the environment variable HCLOUD_TOKEN required: true type: str
hcloud_datacenter_facts: contains: city: description: City of the location returned: always sample: fsn1 type: str description: description: Detail description of the location returned: always sample: Falkenstein DC 8 type: str id: description: Numeric identifier of the location returned: always sample: 1937415 type: int location: description: Name of the location where the datacenter resides in returned: always sample: fsn1 type: str name: description: Name of the location returned: always sample: fsn1-dc8 type: str description: The datacenter facts as list returned: always type: complex