ZABBIX AWX, sync invetory

482 Views Asked by At

Is possible sync the inventory of Ansible tower (AWX) running in containers with Zabbix inventory?

Any code or playbook to make this appreciate a lot!

1

There are 1 best solutions below

0
On

Yes, It is possible.. You need to fetch hosts from yous inventory of ansible tower and use zabbix modules to update hosts on your zabbix server.

here are the list of modules for zabbix

and here is the module to create/update/delete hosts on zabbix

You playbooks should execute community.zabbix.zabbix_host module in loop with_inventory_hostnames from a specific group or all hosts in the inventory.