W3cubDocs

/Ansible

community.general.ovh_ip_loadbalancing_backend – Manage OVH IP LoadBalancing backends

Note

This plugin is part of the community.general collection (version 3.8.1).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install community.general.

To use it in a playbook, specify: community.general.ovh_ip_loadbalancing_backend.

Synopsis

  • Manage OVH (French European hosting provider) LoadBalancing IP backends

Requirements

The below requirements are needed on the host that executes this module.

  • ovh > 0.3.5

Parameters

Parameter Choices/Defaults Comments
application_key
string / required
The applicationKey to use
application_secret
string / required
The application secret to use
backend
string / required
The IP address of the backend to update / modify / delete
consumer_key
string / required
The consumer key to use
endpoint
string / required
The endpoint to use ( for instance ovh-eu)
name
string / required
Name of the LoadBalancing internal name (ip-X.X.X.X)
probe
string
    Choices:
  • none
  • http
  • icmp
  • oco
Determines the type of probe to use for this backend
state
string
    Choices:
  • present
  • absent
Determines whether the backend is to be created/modified or deleted
timeout
integer
Default:
120
The timeout in seconds used to wait for a task to be completed.
weight
integer
Default:
8
Determines the weight for this backend

Notes

Note

Examples

- 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

- 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

Authors

  • Pascal Heraud (@pascalheraud)

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/ovh_ip_loadbalancing_backend_module.html