Generate an Ansible dynamic inventory (all / active) from libvirt
Before building, you need at least libvirt-dev installed on your machine.
$ git clone https://github.com/tormath1/libvirt-inventory
$ cd libvirt-inventory
$ makeThis step will install the inventory into /etc/ansible/hosts/libvirt-inventory
$ make && sudo make installIf installed:
$ ansible -m ping allif just built:
$ ansible -m ping ./inventory all- handle different network interfaces
- handle differents "tag" using name of the domains ?