Skip to content

scaleway/ansible

Repository files navigation

Scaleway Community Collection

This collection contains modules and plugins for Ansible to automate the management of Scaleway infrastructure and services.

Reach us

You can contact us on our Slack community.

Inventory

  • scaleway.scaleway.scaleway: dynamic inventory plugin for Scaleway's Instances, Elastic Metal and Apple Sillicon

Usage example:

scw.yml

plugin: scaleway.scaleway.scaleway
profile: base-profile # your scaleway credentials profile
host_attributes:
  - public_ipv4
  - hostname
  - id

ansible-inventory -i scw.yml --list will list all the hosts from the dynamic inventory.

Authentication and Environment variables

Authentication is handled with the SCW_PROFILE or the SCW_ACCESS_KEY and SCW_SECRET_KEY environment variables.

Please check this documentation for detailed instructions on how to configure your Scaleway credentials.

Installing the collection

ansible-galaxy collection install scaleway.scaleway

You can also include it in a requirements.yml file and install it via ansible-galaxy collection install -r requirements.yml, using the format:

---
collections:
  - name: scaleway.scaleway

Note that the python module dependencies are not installed by ansible-galaxy. They can be manually installed using pip:

pip install -r requirements-scaleway.txt

Note that if you install the collection from Ansible Galaxy, it will not be upgraded automatically if you upgrade the Ansible package. To upgrade the collection to the latest available version, run the following command:

ansible-galaxy collection install scaleway.scaleway --upgrade

You can also install a specific version of the collection, for example, if you need to downgrade when something is broken in the latest version (please report an issue in this repository). Use the following syntax:

ansible-galaxy collection install scaleway.scaleway:==1.0.0

Useful links

Licensing

GNU General Public License v3.0 or later.

See LICENSE to see the full text.

About

Ansible Collection for Scaleway

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

Languages