Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_bios/molecule/clear_pending_attributes-10558/converge.yml

raw symbols SCIP
1 ---
2 - name: Converge file for clear pending attributes
3 hosts: all
4 gather_facts: false
5 tasks:
6 - name: Clear pending attributes
7 ansible.builtin.import_role:
8 name: dellemc.openmanage.idrac_bios
9 vars:
10 hostname: "{{ lookup('env', 'IDRAC_IP') }}"
11 username: "{{ lookup('env', 'IDRAC_USER') }}"
12 password: "{{ lookup('env', 'IDRAC_PASSWORD') }}"
13 validate_certs: false
14 clear_pending: true
15
16 - name: Verify clear pending attributes in normal mode
17 ansible.builtin.assert:
18 that:
19 - idrac_bios_out.clear_pending.status_msg == "Successfully cleared
20 the pending BIOS attributes."
21 - idrac_bios_out.reset_bios.skipped
22 - idrac_bios_out.attributes.skipped
23 when: not ansible_check_mode
24 tags: molecule-idempotence-notest
25
26 - name: Verify clear pending attributes in check mode
27 ansible.builtin.assert:
28 that:
29 - idrac_bios_out.clear_pending.status_msg == "Changes found
30 to be applied."
31 when: ansible_check_mode
32 tags: molecule-idempotence-notest
33
34 - name: Verify clear pending attributes in idempotence mode
35 ansible.builtin.assert:
36 that:
37 - idrac_bios_out.clear_pending.status_msg == "No changes found
38 to be applied."
39 when: not ansible_check_mode and not idrac_bios_out.clear_pending.changed