Collect hardware facts if necessary for libvirt type
We're seeing failures where ansible_processor is missing. We should try to do a hardware fact collection if ansible_processor is not defined before executing the set-libvirt-type role tasks Change-Id: I40ae758d687dd8f637c27c0e7acf76dbf60adb51 Closes-Bug: #1849895
This commit is contained in:
parent
e702a6b97f
commit
4be84430e4
@ -1,4 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
- name: Collect hardware facts if necessary
|
||||||
|
setup:
|
||||||
|
gather_subset: "!all,!min,hardware"
|
||||||
|
when: ansible_processor is not defined
|
||||||
- name: Check cpu vendor
|
- name: Check cpu vendor
|
||||||
set_fact:
|
set_fact:
|
||||||
cpu_vendor: "{{ item }}"
|
cpu_vendor: "{{ item }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user