ansible.builtin.scaleway_compute (v2.6.0) — module

Scaleway compute management module

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

Authors: Remy Leone (@sieben)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.6.0

Description

This module manages compute instances on Scaleway.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a server
  scaleway_compute:
    name: foobar
    state: present
    image: 89ee4018-f8c3-4dc4-a6b5-bca14f985ebe
    organization: 951df375-e094-4d26-97c1-ba548eeb9c42
    region: ams1
    commercial_type: VC1S
    tags:
      - test
      - www
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Destroy it right after
  scaleway_compute:
    name: foobar
    state: absent
    image: 89ee4018-f8c3-4dc4-a6b5-bca14f985ebe
    organization: 951df375-e094-4d26-97c1-ba548eeb9c42
    region: ams1
    commercial_type: VC1S

Inputs

    
name:
    description:
    - Name of the instance

tags:
    default: []
    description:
    - List of tags to apply to the instance (5 max)
    required: false

wait:
    default: 'no'
    description:
    - Wait for the instance to reach its desired state before returning.
    type: bool

image:
    description:
    - Image identifier used to start the instance with
    required: true

state:
    choices:
    - present
    - absent
    - running
    - restarted
    - stopped
    default: present
    description:
    - Indicate desired state of the instance.

region:
    choices:
    - ams1
    - EMEA-NL-EVS
    - par1
    - EMEA-FR-PAR1
    description:
    - Scaleway compute zone
    required: true

timeout:
    default: 30
    description:
    - Timeout for API calls
    required: false

enable_ipv6:
    default: false
    description:
    - Enable public IPv6 connectivity on the instance
    type: bool

oauth_token:
    description:
    - Scaleway OAuth token.
    required: true

organization:
    description:
    - Organization identifier
    required: true

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

commercial_type:
    choices:
    - ARM64-2GB
    - ARM64-4GB
    - ARM64-8GB
    - ARM64-16GB
    - ARM64-32GB
    - ARM64-64GB
    - ARM64-128GB
    - C1
    - C2S
    - C2M
    - C2L
    - VC1S
    - VC1M
    - VC1L
    - X64-15GB
    - X64-30GB
    - X64-60GB
    - X64-120GB
    description:
    - Commercial name of the compute node
    required: true

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