community.general.scaleway (8.5.0) — inventory

Scaleway inventory source

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

Get inventory hosts from Scaleway.


Requirements

Inputs

    
tags:
    description: Filter results on a specific tag.
    elements: string
    type: list

plugin:
    choices:
    - scaleway
    - community.general.scaleway
    description: Token that ensures this is a source file for the 'scaleway' plugin.
    required: true

regions:
    default:
    - ams1
    - par1
    - par2
    - waw1
    description: Filter results on a specific Scaleway region.
    elements: string
    type: list

hostnames:
    choices:
    - public_ipv4
    - private_ipv4
    - public_ipv6
    - hostname
    - id
    default:
    - public_ipv4
    description: List of preference about what to use as an hostname.
    elements: string
    type: list

variables:
    description: 'Set individual variables: keys are variable names and values are templates.
      Any value returned by the L(Scaleway API, https://developer.scaleway.com/#servers-server-get)
      can be used.'
    type: dict

oauth_token:
    description:
    - Scaleway OAuth token.
    - If not explicitly defined or in environment variables, it will try to lookup in
      the scaleway-cli configuration file (C($SCW_CONFIG_PATH), C($XDG_CONFIG_HOME/scw/config.yaml),
      or C(~/.config/scw/config.yaml)).
    - More details on L(how to generate token, https://www.scaleway.com/en/docs/generate-api-keys/).
    env:
    - name: SCW_TOKEN
    - name: SCW_API_KEY
    - name: SCW_OAUTH_TOKEN

scw_profile:
    description:
    - The config profile to use in config file.
    - By default uses the one specified as C(active_profile) in the config file, or falls
      back to V(default) if that is not defined.
    type: string
    version_added: 4.4.0
    version_added_collection: community.general