Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_firmware/molecule/https_share-10584/converge.yml

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