16 lines
307 B
YAML
16 lines
307 B
YAML
|
---
|
||
|
- 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
|