Debian Codegraph @

ansible_collections/amazon/aws/tests/integration/targets/iam_group/tasks/deletion.yml

raw
1 ---
2 - name: Remove group (check_mode)
3 amazon.aws.iam_group:
4 name: "{{ test_group }}"
5 state: absent
6 register: iam_group
7 check_mode: true
8
9 - ansible.builtin.assert:
10 that:
11 - iam_group is changed
12
13 - name: Remove group
14 amazon.aws.iam_group:
15 name: "{{ test_group }}"
16 state: absent
17 register: iam_group
18
19 - ansible.builtin.assert:
20 that:
21 - iam_group is changed
22
23 - name: Re-remove group (check_mode)
24 amazon.aws.iam_group:
25 name: "{{ test_group }}"
26 state: absent
27 register: iam_group
28 check_mode: true
29
30 - ansible.builtin.assert:
31 that:
32 - iam_group is not changed
33
34 - name: Re-remove group
35 amazon.aws.iam_group:
36 name: "{{ test_group }}"
37 state: absent
38 register: iam_group
39
40 - ansible.builtin.assert:
41 that:
42 - iam_group is not changed