Ansible Dynamic Inventory Script for Ubuntu MAAS 2.0 API
Find a file
2020-04-04 22:46:02 +02:00
.gitattributes Initial version 2017-05-11 18:49:34 +02:00
.gitignore Initial commit 2017-05-11 16:29:30 +02:00
ansible-maas.py Rename supported to supportedVersion 2020-04-04 22:46:02 +02:00
CHANGELOG.md Update info for 2.0.1 2017-05-19 16:29:25 +02:00
LICENSE Initial commit 2017-05-11 16:29:30 +02:00
README.md Update info for 2.0.1 2017-05-19 16:29:25 +02:00

ansible-maas

An Ansible Dynamic Inventory Script for the Ubuntu MAAS 2.0 API.

Primarily it will be called by Ansible itself with the --list or --host arguments, but additional arguments were implemented for administrators to take advantage of if desired.

Note: this script will only return machines that are in "Deployed" status.

Usage

  • Replace Ansible's hosts file in the correct directory, e.g. /etc/ansible/hosts
  • Set environment variables MAAS_API_URL and MAAS_API_KEY
  • Enjoy!