mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-11 10:00:03 -03:30
* rename ansible groups to use _ instead of -
k8s-cluster -> k8s_cluster
k8s-node -> k8s_node
calico-rr -> calico_rr
no-floating -> no_floating
Note: kube-node,k8s-cluster groups in upgrade CI
need clean-up after v2.16 is tagged
* ensure old groups are mapped to the new ones
19 lines
421 B
YAML
19 lines
421 B
YAML
---
|
|
- hosts: kube_node
|
|
become: False
|
|
|
|
tasks:
|
|
- name: Gather EC2 facts
|
|
action: ec2_facts
|
|
|
|
- name: Terminate EC2 instances
|
|
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
|
|
delegate_to: localhost
|
|
connection: local
|