summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/inventory_cloudscale/playbooks/cleanup.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/inventory_cloudscale/playbooks/cleanup.yml')
-rw-r--r--test/integration/targets/inventory_cloudscale/playbooks/cleanup.yml17
1 files changed, 0 insertions, 17 deletions
diff --git a/test/integration/targets/inventory_cloudscale/playbooks/cleanup.yml b/test/integration/targets/inventory_cloudscale/playbooks/cleanup.yml
deleted file mode 100644
index acb3c907fc..0000000000
--- a/test/integration/targets/inventory_cloudscale/playbooks/cleanup.yml
+++ /dev/null
@@ -1,17 +0,0 @@
----
-- name: List all servers
- uri:
- url: 'https://api.cloudscale.ch/v1/servers'
- headers:
- Authorization: 'Bearer {{ lookup("env", "CLOUDSCALE_API_TOKEN") }}'
- status_code: 200
- register: server_list
-
-- name: Remove all servers created by this test run
- cloudscale_server:
- uuid: '{{ item.uuid }}'
- state: 'absent'
- when: cloudscale_resource_prefix in item.name
- with_items: '{{ server_list.json }}'
- loop_control:
- label: '{{ item.name }} ({{ item.uuid }})'