1 2 3 4 5 6 7 8
--- - name: Terminate ec2 instances local_action: ec2 state=absent instance_ids={{ ec2_id }} region={{ region }} wait=true