Add some roles for autodetection of Hardware
This commit is contained in:
9
roles/yavdr-common/files/modules.fact.py
Executable file
9
roles/yavdr-common/files/modules.fact.py
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env python2
|
||||
# This script returns a list of currently loaded kernel modules
|
||||
from __future__ import print_function
|
||||
import json
|
||||
import kmodpy
|
||||
|
||||
k = kmodpy.Kmod()
|
||||
|
||||
print(json.dumps([module[0] for module in k.loaded()]))
|
||||
Reference in New Issue
Block a user