ansible / ansible.builtin / v2.9.13 / module / hetzner_failover_ip Manage Hetzner's failover IPs | "added in version" 2.9 of ansible.builtin" Authors: Felix Fontein (@felixfontein) preview | supported by communityansible.builtin.hetzner_failover_ip (v2.9.13) — module
pip
Install with pip install ansible==2.9.13
Manage Hetzner's failover IPs.
- name: Set value of failover IP 1.2.3.4 to 5.6.7.8 hetzner_failover_ip: hetzner_user: foo hetzner_password: bar failover_ip: 1.2.3.4 value: 5.6.7.8
- name: Set value of failover IP 1.2.3.4 to unrouted hetzner_failover_ip: hetzner_user: foo hetzner_password: bar failover_ip: 1.2.3.4 state: unrouted
state: choices: - routed - unrouted default: routed description: - Defines whether the IP will be routed or not. - If set to C(routed), I(value) must be specified. type: str value: description: - The new value for the failover IP address. - Required when setting I(state) to C(routed). type: str timeout: default: 180 description: - Timeout to use when routing or unrouting the failover IP. - Note that the API call returns when the failover IP has been successfully routed to the new address, respectively successfully unrouted. type: int 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
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