Debian Codegraph @

ansible_collections/amazon/aws/tests/integration/targets/rds_subnet_group/tasks/params.yml

raw
1 ---
2 # Try creating without a description
3 - name: Create a subnet group (no description)
4 amazon.aws.rds_subnet_group:
5 state: present
6 name: "{{ resource_prefix }}"
7 subnets:
8 - "{{ subnet_ids[0] }}"
9 - "{{ subnet_ids[1] }}"
10 ignore_errors: true
11 register: create_missing_param
12 - ansible.builtin.assert:
13 that:
14 - create_missing_param is failed
15 - "'description' in create_missing_param.msg"
16 - "'state is present but all of the following are missing' in create_missing_param.msg"
17
18 # Try creating without subnets
19 - name: Create a subnet group (no subnets)
20 amazon.aws.rds_subnet_group:
21 state: present
22 name: "{{ resource_prefix }}"
23 description: "{{ group_description }}"
24 ignore_errors: true
25 register: create_missing_param
26 - ansible.builtin.assert:
27 that:
28 - create_missing_param is failed
29 - "'subnets' in create_missing_param.msg"
30 - "'state is present but all of the following are missing' in create_missing_param.msg"