Ansible dynamic inventory plugin for PBO3. Generates an ansible inventory from the pbo3 server database.
pip install -r requirements.txt
export ANSIBLE_INVENTORY_ENABLED="pbo3"
export ANSIBLE_INVENTORY_PLUGINS="path/to/the/inventory/directory"
Add your variables in inventory.yaml file. "password" is optional and the script will prompt for a password if the line is commented. When you start your playbook just add the inventory
ansible-playbook playbook.yaml -i inventory.yaml