Debian Codegraph @

ansible_collections/netapp_eseries/santricity/roles/nar_santricity_management/tasks/firmware.yml

raw symbols SCIP
1 - name: Upload required drive, nvsram, and firmware files to Web Services Proxy.
2 block:
3 - name: Collect expected firmware file lists
4 ansible.builtin.set_fact:
5 eseries_proxy_drive_firmware: |-
6 {%- set drive_firmware = [] %}
7 {%- for host in ansible_play_hosts_all %}
8 {%- if hostvars[host]["current_eseries_api_is_proxy"] and "eseries_drive_firmware_firmware_list" in hostvars[host] %}
9 {%- if drive_firmware.extend(hostvars[host]["eseries_drive_firmware_firmware_list"]) %}{%- endif %}
10 {%- endif %}
11 {%- endfor %}
12 {{ drive_firmware | list }}
13 eseries_proxy_nvsram: |-
14 {%- set nvsram = [] %}
15 {%- for host in ansible_play_hosts_all %}
16 {%- if hostvars[host]["current_eseries_api_is_proxy"] and "eseries_firmware_nvsram" in hostvars[host] %}
17 {%- if nvsram.append(hostvars[host]["eseries_firmware_nvsram"]) %}{%- endif %}
18 {%- endif %}
19 {%- endfor %}
20 {{ nvsram | list }}
21 eseries_proxy_firmware: |-
22 {%- set firmware = [] %}
23 {%- for host in ansible_play_hosts_all %}
24 {%- if hostvars[host]["current_eseries_api_is_proxy"] and "eseries_firmware_firmware" in hostvars[host] %}
25 {%- if firmware.append(hostvars[host]["eseries_firmware_firmware"]) %}{%- endif %}
26 {%- endif %}
27 {%- endfor %}
28 {{ firmware | list }}
29
30 - name: Ensure SANtricity Web Services Proxy has the expected drive firmware
31 netapp_eseries.santricity.na_santricity_proxy_drive_firmware_upload:
32 api_url: "{{ eseries_proxy_api_url }}"
33 api_username: "{{ eseries_proxy_api_username }}"
34 api_password: "{{ eseries_proxy_api_password }}"
35 validate_certs: "{{ eseries_validate_certs | default(omit) }}"
36 firmware: "{{ eseries_proxy_drive_firmware | default(omit) }}"
37 connection: local
38 when: eseries_proxy_drive_firmware != []
39
40 - name: Ensure SANtricity Web Services Proxy has the expected controller firmware and NVSRAM
41 netapp_eseries.santricity.na_santricity_proxy_firmware_upload:
42 api_url: "{{ eseries_proxy_api_url }}"
43 api_username: "{{ eseries_proxy_api_username }}"
44 api_password: "{{ eseries_proxy_api_password }}"
45 validate_certs: "{{ eseries_validate_certs | default(omit) }}"
46 firmware: "{{ eseries_proxy_firmware | default(omit) + eseries_proxy_nvsram | default(omit) }}"
47 connection: local
48 when: eseries_proxy_nvsram != [] or eseries_proxy_firmware != []
49 run_once: true
50
51 - name: Ensure drive firmware is properly configured
52 netapp_eseries.santricity.na_santricity_drive_firmware:
53 ssid: "{{ current_eseries_ssid }}"
54 api_url: "{{ current_eseries_api_url }}"
55 api_username: "{{ current_eseries_api_username }}"
56 api_password: "{{ current_eseries_api_password }}"
57 validate_certs: "{{ current_eseries_validate_certs | default(omit) }}"
58 firmware: "{{ eseries_drive_firmware_firmware_list }}"
59 wait_for_completion: "{{ eseries_drive_firmware_wait_for_completion | default(true) }}"
60 ignore_inaccessible_drives: "{{ eseries_drive_firmware_ignore_inaccessible_drives | default(omit) }}"
61 upgrade_drives_online: "{{ eseries_drive_firmware_upgrade_drives_online | default(omit) }}"
62 connection: local
63 when: eseries_drive_firmware_firmware_list is defined
64 tags:
65 - firmware
66 - drive_firmware
67
68 - name: Ensure controller firmware is properly configured
69 netapp_eseries.santricity.na_santricity_firmware:
70 ssid: "{{ current_eseries_ssid }}"
71 api_url: "{{ current_eseries_api_url }}"
72 api_username: "{{ current_eseries_api_username }}"
73 api_password: "{{ current_eseries_api_password }}"
74 validate_certs: "{{ current_eseries_validate_certs | default(omit) }}"
75 nvsram: "{{ eseries_firmware_nvsram | default('') }}"
76 firmware: "{{ eseries_firmware_firmware | default('') }}"
77 wait_for_completion: "{{ eseries_firmware_wait_for_completion | default(true) }}"
78 clear_mel_events: "{{ eseries_firmware_ignore_mel_events | default(omit) }}"
79 connection: local
80 when: eseries_firmware_nvsram is defined or eseries_firmware_firmware is defined
81 tags:
82 - firmware
83 - controller_firmware