Skip to content

tormath1/libvirt-inventory

Repository files navigation

Ansible Libvirt dynamic inventory

Go

Generate an Ansible dynamic inventory (all / active) from libvirt

demo

Build

Before building, you need at least libvirt-dev installed on your machine.

$ git clone https://github.com/tormath1/libvirt-inventory
$ cd libvirt-inventory
$ make

Install

This step will install the inventory into /etc/ansible/hosts/libvirt-inventory

$ make && sudo make install

Usage

If installed:

$ ansible -m ping all

if just built:

$ ansible -m ping ./inventory all

Todo

  • handle different network interfaces
  • handle differents "tag" using name of the domains ?

About

ansible dynamic inventory for libvirt

Resources

License

Stars

Watchers

Forks

Packages

No packages published