community / community.general / 0.1.4 / module / hetzner_failover_ip_info Retrieve information on Hetzner's failover IPs Authors: Felix Fontein (@felixfontein)community.general.hetzner_failover_ip_info (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
Retrieve information on Hetzner's failover IPs.
- name: Get value of failover IP 1.2.3.4 hetzner_failover_ip_info: hetzner_user: foo hetzner_password: bar failover_ip: 1.2.3.4 value: 5.6.7.8 register: result
- name: Print value of failover IP 1.2.3.4 in case it is routed debug: msg: "1.2.3.4 routes to {{ result.value }}" when: result.state == 'routed'
failover_ip: description: The failover IP address. required: true type: str hetzner_user: description: The username for the Robot webservice user. required: true type: str hetzner_password: description: The password for the Robot webservice user. required: true type: str
failover_ip: description: - The failover IP. returned: success sample: 1.2.3.4 type: str failover_netmask: description: - The netmask for the failover IP. returned: success sample: 255.255.255.255 type: str server_ip: description: - The main IP of the server this failover IP is associated to. - This is I(not) the server the failover IP is routed to. returned: success type: str server_number: description: - The number of the server this failover IP is associated to. - This is I(not) the server the failover IP is routed to. returned: success type: int state: description: - Will be C(routed) or C(unrouted). returned: success type: str value: description: - The value of the failover IP. - Will be C(none) if the IP is unrouted. returned: success type: str