cloudscale: new module cloudscale_server_group (#54901)

This commit is contained in:
René Moser
2019-04-10 18:50:59 +02:00
committed by GitHub
parent 424747e50b
commit 166a33ef4d
7 changed files with 395 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
- name: List all server groups
uri:
url: 'https://api.cloudscale.ch/v1/server-groups'
headers:
Authorization: 'Bearer {{ cloudscale_api_token }}'
status_code: 200
register: server_group_list
- name: Remove all server groups created by this test run
cloudscale_server_group:
uuid: '{{ item.uuid }}'
state: absent
when: cloudscale_resource_prefix in item.name
with_items: '{{ server_group_list.json }}'
loop_control:
label: '{{ item.name }} ({{ item.uuid }})'