ansible / ansible.builtin / v2.9.23 / module / _hcloud_image_facts Gather infos about your Hetzner Cloud images. | "added in version" 2.8 of ansible.builtin" Authors: Lukas Kaemmerling (@LKaemmerling) preview | supported by communityansible.builtin._hcloud_image_facts (v2.9.23) — module
pip
Install with pip install ansible==2.9.23
Gather infos about your Hetzner Cloud images.
This module was called C(hcloud_location_facts) before Ansible 2.9, returning C(ansible_facts) and C(hcloud_location_facts). Note that the M(hcloud_image_info) module no longer returns C(ansible_facts) and the value was renamed to C(hcloud_image_info)!
- name: Gather hcloud image infos hcloud_image_info: register: output
- name: Print the gathered infos debug: var: output
id: description: - The ID of the image you want to get. type: int name: description: - The name of the image you want to get. type: str type: choices: - system - snapshot - backup default: system description: - The label selector for the images 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. required: true type: str label_selector: description: - The label selector for the images you want to get. type: str
hcloud_image_info: contains: description: description: Detail description of the image returned: always sample: Ubuntu 18.04 Standard 64 bit type: str id: description: Numeric identifier of the image returned: always sample: 1937415 type: int labels: description: User-defined labels (key-value pairs) returned: always type: dict name: description: Name of the image returned: always sample: ubuntu-18.04 type: str os_flavor: description: OS flavor of the image returned: always sample: ubuntu type: str os_version: description: OS version of the image returned: always sample: 18.04 type: str status: description: Status of the image returned: always sample: available type: str type: description: Type of the image returned: always sample: system type: str description: The image infos as list returned: always type: complex