Debian Codegraph @

ansible_collections/amazon/aws/tests/integration/targets/autoscaling_group/main.yml

raw
1 ---
2 # Beware: most of our tests here are run in parallel.
3 # To add new tests you'll need to add a new host to the inventory and a matching
4 # '{{ inventory_hostname }}'.yml file in roles/ec2_asg/tasks/
5 # Prepare the VPC and figure out which AMI to use
6 - name: Prepare VPC for ASG tests
7 hosts: all
8 gather_facts: false
9 tasks:
10 - module_defaults:
11 group/aws:
12 access_key: "{{ aws_access_key }}"
13 secret_key: "{{ aws_secret_key }}"
14 session_token: "{{ security_token | default(omit) }}"
15 region: "{{ aws_region }}"
16 block:
17 - ansible.builtin.include_role:
18 name: setup_ec2_facts
19 - ansible.builtin.include_role:
20 name: ec2_asg
21 tasks_from: env_setup.yml
22 rescue:
23 - ansible.builtin.include_role:
24 name: ec2_asg
25 tasks_from: env_cleanup.yml
26 run_once: true
27 - ansible.builtin.fail:
28 msg: Environment preparation failed
29 run_once: true
30 - name: Run Auto Scaling Group tests (in parallel)
31 hosts: all
32 gather_facts: false
33 strategy: free
34 serial: 6
35 roles:
36 - ec2_asg