This will allow you to create a dynamic Ansible inventory for your Memset servers, using the Memset API.
If you already have a /etc/ansible/hosts
file, rename this to /etc/ansible/hosts-local
.
Create a folder in its place: /etc/ansible/hosts
.
Clone or download this repository to your local machine, and move memset
to /etc/ansible/hosts
, ensuring that it is executable.
You can merge the backup (/etc/ansible/hosts-local
) with the file hosts-local
in this repository, to mix dynamic and static groups.
This creates the Ansible host groups:
[memset-linux], [memset-windows], [memset-reading], [memset-dunsfold]
This also creates the Ansible variables, listed in Docs/Variables.md
The variable ANSIBLE_MEMSET_KEY must be exported before running any ansible command:
export ANSIBLE_MEMSET_KEY=XXXXXX
You can now access your Memset hosts through ansible:
ansible memset-linux -m ping
ansible memset-reading -l memset-linux -m ping
API key must have access to at least:
method:server.list
, method:server.info
& method:service.info
This is free software under the terms of MIT the license (check the COPYING file included in this repository).
The project website is at:
There you can file bug reports, ask for help or send pull requests.
- Tom Whitwell [email protected]
- Your name goes here!