Skip to content

Commit

Permalink
add lower filter to esxi_cpu_vendor definition
Browse files Browse the repository at this point in the history
Signed-off-by: Yanan Shen <[email protected]>
  • Loading branch information
123lzxm committed Mar 27, 2024
1 parent 263b480 commit 03d74ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/esxi_get_model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
ansible.builtin.set_fact:
esxi_model_info: "{{ esxi_host_property_results.ansible_facts.summary.hardware.vendor }} {{ esxi_host_property_results.ansible_facts.summary.hardware.model }}"
esxi_cpu_model_info: "{{ esxi_host_property_results.ansible_facts.summary.hardware.cpuModel }}"
esxi_cpu_vendor: "{{ esxi_host_property_results.ansible_facts.hardware.cpuPkg[0].vendor | default('Unknown') }}"
esxi_cpu_vendor: "{{ esxi_host_property_results.ansible_facts.hardware.cpuPkg[0].vendor | default('Unknown') | lower }}"

- name: "Get ESXi server CPU code name"
when: esxi_cpu_vendor == 'intel'
Expand Down

0 comments on commit 03d74ed

Please sign in to comment.