Closed TheLaskY closed 1 month ago
Okay found what's causing the problem.
I tested more configuration, and based on container's config:
DO NOT USE
hosts:
children: [unix, windows]
itemtype: Computer
fields:
- 1 # name
- 4 # ComputerType.name
- 33 # Domain.name
- 23 # Manufacturer.name
- 31 # State.completename
- 45 # Item_OperatingSystem.OperatingSystem.name
- 46 # Item_OperatingSystem.OperatingSystemVersion.name
hostname: $1.$33
hostvars:
domain: $33
type: $4
state: $31
os_name: $45
os_version: $46
BUT
hosts:
children: [unix, windows]
itemtype: Computer
fields: [1,4,33,23,31,45,46]
hostname: $1.$33
hostvars:
domain: $33
type: $4
state: $31
os_name: $45
os_version: $46
I don't know if i just pulled a bug, but this config works now for me.
Hey, it's been a few days i'm tryng to get this playbook working, but no sucess whatsoever...
What am i doing wrong ?
As i'm using the default config from exemples/glpi-api.yml , the script is only printing docker containers running on hosts, but not the hosts themselves! I've figured i can tweak the default config to try and print Ubuntu 22.04 and Windows 11 hosts, but it won't!