Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_firmware/molecule/nfs_share-10572/converge.yml

raw symbols SCIP
1 ---
2 - name: Converge idrac_firmware for nfsshare
3 hosts: all
4 gather_facts: false
5 tasks:
6 - name: Update firmware from repository on a NFS Share
7 ansible.builtin.import_role:
8 name: dellemc.openmanage.idrac_firmware
9 vars:
10 hostname: "{{ lookup('env', 'IDRAC_IP') }}"
11 username: "{{ lookup('env', 'IDRAC_USER') }}"
12 password: "{{ lookup('env', 'IDRAC_PASSWORD') }}"
13 share_name: "{{ lookup('env', 'nfsshare') }}"
14 validate_certs: false
15 reboot: true
16 job_wait: true
17 apply_update: true
18 catalog_file_name: "{{ lookup('env', 'catalog_file_name') }}"
19
20 - name: "Waiting for idrac to be reachable"
21 ansible.builtin.include_tasks:
22 file: "../resources/_wait_for_port_to_open.yaml"
23 when: not ansible_check_mode
24 tags: molecule-idempotence-notest
25
26 - name: "Verifying update firmware from repository on a NFS Share in check mode"
27 ansible.builtin.assert:
28 that: idrac_firmware_out.msg == "Changes found to commit!"
29 when: ansible_check_mode
30 tags: molecule-idempotence-notest
31
32 - name: "Verifying update firmware from repository on a NFS Share in normal mode"
33 ansible.builtin.assert:
34 that:
35 - idrac_firmware_out.msg == "Successfully updated the firmware."
36 when: not ansible_check_mode and idrac_firmware_out.changed
37
38 - name: "Verifying update firmware from repository on a NFS Share in idempotence mode"
39 ansible.builtin.assert:
40 that:
41 - idrac_firmware_out.msg == "Unable to complete the operation because the catalog name entered has either unsupported firmware packages
42 or same version installed on the server."
43 when: not ansible_check_mode and not idrac_firmware_out.changed