ansible.builtin.scaleway_lb (v2.9.27) — module

Scaleway load-balancer management module

| "added in version" 2.8 of ansible.builtin"

Authors: Remy Leone (@sieben)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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
  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
  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

tags:
    description:
    - List of tags to apply to the load-balancer

wait:
    default: 'no'
    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.

region:
    choices:
    - nl-ams
    - fr-par
    description:
    - Scaleway zone
    required: true

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

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

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

organization_id:
    description:
    - Organization identifier
    required: true

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

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