community.general.scaleway_lb (8.5.0) — module

Scaleway load-balancer management module

Authors: Remy Leone (@remyleone)

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

This module manages load-balancers on Scaleway.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a load-balancer
  community.general.scaleway_lb:
    name: foobar
    state: present
    organization_id: 951df375-e094-4d26-97c1-ba548eeb9c42
    region: fr-par
    tags:
      - hello
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete a load-balancer
  community.general.scaleway_lb:
    name: foobar
    state: absent
    organization_id: 951df375-e094-4d26-97c1-ba548eeb9c42
    region: fr-par

Inputs

    
name:
    description:
    - Name of the load-balancer.
    required: true
    type: str

tags:
    default: []
    description:
    - List of tags to apply to the load-balancer.
    elements: str
    type: list

wait:
    default: false
    description:
    - Wait for the load-balancer to reach its desired state before returning.
    type: bool

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Indicate desired state of the instance.
    type: str

region:
    choices:
    - nl-ams
    - fr-par
    - pl-waw
    description:
    - Scaleway zone.
    required: true
    type: str

api_url:
    aliases:
    - base_url
    default: https://api.scaleway.com
    description:
    - Scaleway API URL.
    type: str

api_token:
    aliases:
    - oauth_token
    description:
    - Scaleway OAuth token.
    required: true
    type: str

api_timeout:
    aliases:
    - timeout
    default: 30
    description:
    - HTTP timeout to Scaleway API in seconds.
    type: int

description:
    description:
    - Description of the load-balancer.
    required: true
    type: str

wait_timeout:
    default: 300
    description:
    - Time to wait for the load-balancer to reach the expected state.
    required: false
    type: int

validate_certs:
    default: true
    description:
    - Validate SSL certs of the Scaleway API.
    type: bool

organization_id:
    description:
    - Organization identifier.
    required: true
    type: str

wait_sleep_time:
    default: 3
    description:
    - Time to wait before every attempt to check the state of the load-balancer.
    required: false
    type: int

query_parameters:
    default: {}
    description:
    - List of parameters passed to the query string.
    type: dict