k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
399 B
17 lines
399 B
---
|
|
- hosts: kube-node
|
|
become: False
|
|
|
|
tasks:
|
|
- name: Gather EC2 facts
|
|
action: ec2_facts
|
|
|
|
- name: Terminate EC2 instances
|
|
local_action:
|
|
module: ec2
|
|
aws_access_key: "{{ aws_access_key }}"
|
|
aws_secret_key: "{{ aws_secret_key }}"
|
|
state: absent
|
|
instance_ids: "{{ ansible_ec2_instance_id }}"
|
|
region: "{{ ansible_ec2_placement_region }}"
|
|
wait: True
|