Debian Codegraph @

ansible_collections/community/aws/tests/integration/targets/networkfirewall/tasks/main.yml

raw
1 ---
2 - name: 'networkfirewall integration tests'
3 collections:
4 - amazon.aws
5 - community.aws
6 module_defaults:
7 group/aws:
8 access_key: '{{ aws_access_key }}'
9 secret_key: '{{ aws_secret_key }}'
10 session_token: '{{ security_token | default(omit) }}'
11 region: '{{ aws_region }}'
12
13 block:
14 # Fetch some info about the account so we can build ARNs
15 - aws_caller_info: {}
16 register: caller_info
17 - name: 'Generate the ARN pattern to search for'
18 vars:
19 _caller_info: '{{ caller_info.arn.split(":") }}'
20 _base_arn: 'arn:{{_caller_info[1]}}:network-firewall:{{aws_region}}'
21 set_fact:
22 account_arn: '{{_base_arn}}:{{_caller_info[4]}}:firewall/'
23
24 # Prepares various resources
25 - include_tasks: 'setup.yml'
26
27 # Test manipulating multiple parameters at the same time
28 - include_tasks: 'complex.yml'
29
30 # Test manipulating one parameter at a time
31 - include_tasks: 'simple.yml'
32
33 always: # []
34 # Cleanup after ourselves
35 - include_tasks: 'cleanup.yml'