simple role to create / delete container on scaleway cloud

This commit is contained in:
2023-10-14 13:11:51 +00:00
parent 206b9f7659
commit dfef258dd5
2 changed files with 19 additions and 10 deletions

View File

@@ -16,9 +16,7 @@ scw_api_default_project_id:
scw_type: DEV1-S
container_action; delete or running
container_number: number of container to create
container_number_start: default 1 ( if container_number == container_number_start you'll create one container )
container_prefix: name of prefix to container #
container_name:
container_domain: default formation.opendoor.fr
scw_gen_hostlist: default true, wether we create a hostlist.yml file containing containers name and ip (to be fed to dns role to create records)
container_image: id of image default alma9 26e4c50e-91d6-41a5-8898-9e40920e819d
@@ -36,14 +34,14 @@ Example Playbook
- hosts: localhost
vars:
container_action: running
container_number: 4
container_prefix: plop
container_name: plope
container_image: lezknfe2324
roles:
- tco.scw_container
```
will create containers plop{1..4}.formation.opendoor.fr
will create containers plope.formation.opendoor.fr
License
-------