'ZABBIX AWX, sync invetory

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!



Solution 1:[1]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 KrishnaR