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:
Alex Schultz 2019-10-25 14:22:24 -06:00
parent e702a6b97f
commit 4be84430e4

View File

@ -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
set_fact:
cpu_vendor: "{{ item }}"