AeroLab supports exporting the cluster/client/agi inventory into ansible. To see the inventory in ansible format, simply run aerolab inventory ansible
.
Running aerolab showcommands
will install a command called aerolab-ansible
. Ansible can then be used with dynamic inventory as so:
ansible-playbook -i aerolab-ansible playbook.yaml
Alternatively, to avoid installing the command, run ln -s ./aerolab ./aerolab-ansible
and then use ansible-playbook -i ./aerolab-ansible playbook.yaml
The concept and implementation are explained on the ansible website.