community.hrobot.failover_ip (1.9.1) — module

Manage Hetzner's failover IPs

Authors: Felix Fontein (@felixfontein)

Install collection

Install with ansible-galaxy collection install community.hrobot:==1.9.1


Add to requirements.yml

  collections:
    - name: community.hrobot
      version: 1.9.1

Description

Manage Hetzner's failover IPs.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set value of failover IP 1.2.3.4 to 5.6.7.8
  community.hrobot.failover_ip:
    hetzner_user: foo
    hetzner_password: bar
    failover_ip: 1.2.3.4
    value: 5.6.7.8
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set value of failover IP 1.2.3.4 to unrouted
  community.hrobot.failover_ip:
    hetzner_user: foo
    hetzner_password: bar
    failover_ip: 1.2.3.4
    state: unrouted

Inputs

    
state:
    choices:
    - routed
    - unrouted
    default: routed
    description:
    - Defines whether the IP will be routed or not.
    - If set to V(routed), O(value) must be specified.
    type: str

value:
    description:
    - The new value for the failover IP address.
    - Required when setting O(state) to V(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

Outputs

state:
  description:
  - Will be V(routed) or V(unrouted).
  returned: success
  type: str
value:
  description:
  - The value of the failover IP.
  - Will be V(none) if the IP is unrouted.
  returned: success
  type: str

See also