XEN Ansible Inventory is dynamic inventory script for listing XenServer virtual machines. Its configurable via its ini file, or command line arguments.
pip install -r requirements.txt
git clone https://github.com/mikesimos/xen_ansible_inventory.git
Example usage:
$ ansible all -i xen_inventory.py -m ping
XenServer>=6.5 XenAPI>=1.2
Michael Angelos Simos