Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvdkleijn/ansible-maas
Ansible Dynamic Inventory Script for Ubuntu MAAS 2.0 API
https://github.com/mvdkleijn/ansible-maas
ansible dynamic dynamic-inventory inventory maas
Last synced: 24 days ago
JSON representation
Ansible Dynamic Inventory Script for Ubuntu MAAS 2.0 API
- Host: GitHub
- URL: https://github.com/mvdkleijn/ansible-maas
- Owner: mvdkleijn
- License: apache-2.0
- Created: 2017-05-11T14:29:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-04T20:46:02.000Z (over 4 years ago)
- Last Synced: 2024-11-09T21:36:44.415Z (about 1 month ago)
- Topics: ansible, dynamic, dynamic-inventory, inventory, maas
- Language: Python
- Size: 18.6 KB
- Stars: 13
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - mvdkleijn/ansible-maas - Ansible Dynamic Inventory Script for Ubuntu MAAS 2.0 API (Python)
README
# 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!