Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_bios/molecule/update_attributes_immediate-10580/converge.yml

raw symbols SCIP
1 ---
2 - name: Converge file to update attributes with apply time as Immediate
3 hosts: all
4 gather_facts: false
5 tasks:
6 - name: Read file content for set_boot_mode variable
7 ansible.builtin.command: cat /tmp/boot_seq_retry.txt
8 register: file_content
9 check_mode: false
10 delegate_to: localhost
11 changed_when: true
12
13 - name: Set set_bootseq_retry variable
14 ansible.builtin.set_fact:
15 set_bootseq_retry: "{{ file_content.stdout }}"
16 delegate_to: localhost
17
18 - name: Update attributes with apply time as Immediate
19 ansible.builtin.import_role:
20 name: dellemc.openmanage.idrac_bios
21 vars:
22 hostname: "{{ lookup('env', 'IDRAC_IP') }}"
23 username: "{{ lookup('env', 'IDRAC_USER') }}"
24 password: "{{ lookup('env', 'IDRAC_PASSWORD') }}"
25 validate_certs: false
26 apply_time: Immediate
27 attributes:
28 BootSeqRetry: "{{ set_bootseq_retry }}"
29
30 - name: Assert update attributes with apply time as Immediate - normal mode
31 ansible.builtin.assert:
32 that:
33 - idrac_bios_out.attributes.status_msg == "Successfully applied the
34 BIOS attributes update."
35 - idrac_bios_out.reset_bios.skipped
36 - idrac_bios_out.clear_pending.skipped
37 when: not ansible_check_mode
38 tags: molecule-idempotence-notest
39
40 - name: Assert update attributes with apply time as Immediate - check mode
41 ansible.builtin.assert:
42 that:
43 - idrac_bios_out.attributes.status_msg == "Changes found to
44 be applied."
45 when: ansible_check_mode
46 tags: molecule-idempotence-notest
47
48 - name: Assert update attributes with apply time as Immediate
49 in idempotence mode
50 ansible.builtin.assert:
51 that:
52 - idrac_bios_out.attributes.status_msg == "No changes found
53 to be applied."
54 when: not ansible_check_mode and not idrac_bios_out.attributes.changed