mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-19 23:07:47 -02:30
Add complete test integration
This commit is contained in:
15
tests/cloud_playbooks/delete-aws.yml
Normal file
15
tests/cloud_playbooks/delete-aws.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
- hosts: kube-node
|
||||
sudo: False
|
||||
|
||||
tasks:
|
||||
- name: Gather EC2 facts
|
||||
action: ec2_facts
|
||||
|
||||
- name: Terminate EC2 instances
|
||||
local_action:
|
||||
module: ec2
|
||||
state: absent
|
||||
instance_ids: "{{ ansible_ec2_instance_id }}"
|
||||
region: "{{ ansible_ec2_placement_region }}"
|
||||
wait: True
|
||||
Reference in New Issue
Block a user