Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user-deprovision.yml « aws « provisioning - github.com/ansible/ansible-examples.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f115a1fc779c30e5182771e8cba02faf89bc5b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---
- name: Deprovision demo EC2 instances for the current user
  hosts: tag_AnsibleDemo_True:&tag_Name_ansible_demo_{{ demo_user }}
  gather_facts: no
  become: no
  tasks:
    - name: Ensure demo EC2 instances are terminated
      ec2:
        region: "{{ aws_region }}"
        instance_ids: "{{ ec2_id }}"
        state: absent
      delegate_to: localhost