put custom fact collection in own role "collect-facts"
so it is not necessary to run yavdr-common every time we use an autoinstall-* role
This commit is contained in:
17
roles/collect-facts/tasks/main.yml
Normal file
17
roles/collect-facts/tasks/main.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
- name: get information about usb and pci hardware and loaded kernel modules
|
||||
hardware_facts:
|
||||
usb: True
|
||||
pci: True
|
||||
modules: True
|
||||
gpus: True
|
||||
acpi_power_modes: True
|
||||
|
||||
- debug:
|
||||
var: '{{ item }}'
|
||||
verbosity: 1
|
||||
with_items:
|
||||
- usb
|
||||
- pci
|
||||
- gpus
|
||||
- modules
|
||||
- acpi_power_modes
|
||||
Reference in New Issue
Block a user