community.general.ovh_ip_loadbalancing_backend (8.5.0) — module

Manage OVH IP LoadBalancing backends

Authors: Pascal Heraud (@pascalheraud)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Manage OVH (French European hosting provider) LoadBalancing IP backends


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Adds or modify the backend '212.1.1.1' to a loadbalancing 'ip-1.1.1.1'
  ovh_ip_loadbalancing:
    name: ip-1.1.1.1
    backend: 212.1.1.1
    state: present
    probe: none
    weight: 8
    endpoint: ovh-eu
    application_key: yourkey
    application_secret: yoursecret
    consumer_key: yourconsumerkey
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Removes a backend '212.1.1.1' from a loadbalancing 'ip-1.1.1.1'
  ovh_ip_loadbalancing:
    name: ip-1.1.1.1
    backend: 212.1.1.1
    state: absent
    endpoint: ovh-eu
    application_key: yourkey
    application_secret: yoursecret
    consumer_key: yourconsumerkey

Inputs

    
name:
    description:
    - Name of the LoadBalancing internal name (ip-X.X.X.X)
    required: true
    type: str

probe:
    choices:
    - none
    - http
    - icmp
    - oco
    default: none
    description:
    - Determines the type of probe to use for this backend
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Determines whether the backend is to be created/modified or deleted
    type: str

weight:
    default: 8
    description:
    - Determines the weight for this backend
    type: int

backend:
    description:
    - The IP address of the backend to update / modify / delete
    required: true
    type: str

timeout:
    default: 120
    description:
    - The timeout in seconds used to wait for a task to be completed.
    type: int

endpoint:
    description:
    - The endpoint to use ( for instance ovh-eu)
    required: true
    type: str

consumer_key:
    description:
    - The consumer key to use
    required: true
    type: str

application_key:
    description:
    - The applicationKey to use
    required: true
    type: str

application_secret:
    description:
    - The application secret to use
    required: true
    type: str