community.general.scaleway_private_network (8.5.0) — module

Scaleway private network management

| "added in version" 4.5.0 of community.general"

Authors: Pascal MANGIN (@pastral)

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 private network on Scaleway account (U(https://developer.scaleway.com)).

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create an private network
  community.general.scaleway_vpc:
    project: '{{ scw_project }}'
    name: 'vpc_one'
    state: present
    region: par1
  register: vpc_creation_task
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Make sure private network with name 'foo' is deleted in region par1
  community.general.scaleway_vpc:
    name: 'foo'
    state: absent
    region: par1

Inputs

    
name:
    description:
    - Name of the VPC.
    type: str

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

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

region:
    choices:
    - ams1
    - EMEA-NL-EVS
    - par1
    - EMEA-FR-PAR1
    - par2
    - EMEA-FR-PAR2
    - waw1
    - EMEA-PL-WAW1
    description:
    - Scaleway region to use (for example V(par1)).
    required: true
    type: str

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

project:
    description:
    - Project identifier.
    required: true
    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

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

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

Outputs

scaleway_private_network:
  description: Information on the VPC.
  returned: success when O(state=present)
  sample:
    created_at: '2022-01-15T11:11:12.676445Z'
    id: 12345678-f1e6-40ec-83e5-12345d67ed89
    name: network
    organization_id: a123b4cd-ef5g-678h-90i1-jk2345678l90
    project_id: a123b4cd-ef5g-678h-90i1-jk2345678l90
    tags:
    - tag1
    - tag2
    - tag3
    - tag4
    - tag5
    updated_at: '2022-01-15T11:12:04.624837Z'
    zone: fr-par-2
  type: dict