ansible / ansible.builtin / v2.9.23 / module / _hcloud_floating_ip_facts Gather infos about the Hetzner Cloud Floating IPs. | "added in version" 2.8 of ansible.builtin" Authors: Lukas Kaemmerling (@LKaemmerling) preview | supported by communityansible.builtin._hcloud_floating_ip_facts (v2.9.23) — module
pip
Install with pip install ansible==2.9.23
Gather facts about your Hetzner Cloud Floating IPs.
This module was called C(hcloud_floating_ip_facts) before Ansible 2.9, returning C(ansible_facts) and C(hcloud_floating_ip_facts). Note that the M(hcloud_floating_ip_info) module no longer returns C(ansible_facts) and the value was renamed to C(hcloud_floating_ip_info)!
- name: Gather hcloud Floating ip infos hcloud_floating_ip_info: register: output
- name: Print the gathered infos debug: var: output
id: description: - The ID of the Floating IP you want to get. type: int 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 Floating IP you want to get. type: str
hcloud_floating_ip_info: contains: description: description: Description of the Floating IP returned: always sample: Falkenstein DC 8 type: str home_location: description: Location the Floating IP was created in returned: always sample: fsn1 type: str id: description: Numeric identifier of the Floating IP returned: always sample: 1937415 type: int ip: description: IP address of the Floating IP returned: always sample: 131.232.99.1 type: str labels: description: User-defined labels (key-value pairs) returned: always type: dict server: description: Name of the server where the Floating IP is assigned to. returned: always sample: my-server type: str type: description: Type of the Floating IP returned: always sample: ipv4 type: str description: The Floating ip infos as list returned: always type: complex