Installation
Using the git repository
Clone the repository
git clone https://github.com/HewlettPackard/monkeyble
Create a dedicated ansible.cfg config file that use the "Monkeyble" callback and declare the monkeyble mock module
[defaults]
library = /path/to/monkeyble/plugins/library
module_utils = /path/to/monkeyble/plugins/module_utils
callback_plugins = /path/to/monkeyble/plugins/callback
callbacks_enabled = monkeyble_callback
jinja2_native = True
Note
jinja2_native is mandatory to interpret correctly null values
That's it. Monkeyble is installed. See now the Hello world section to learn the basics.
Using Ansible Galaxy
Check that you have a collection path
declared in your ansible config (collections_paths). E.g:
[defaults]
collections_paths = /home/my_user/Documents
Note
Ansible expect to find a folder named ansible_collections in the defined collections_paths
Install Monkeyble:
ansible-galaxy collection install git+https://github.com/HewlettPackard/monkeyble
Create a dedicated ansible.cfg config file that use the "Monkeyble" callback and declare the monkeyble mock module
[defaults]
collections_paths = /home/my_user/Documents
library = /home/my_user/Documents/ansible_collections/hpe/monkeyble/plugins/library
module_utils = /home/my_user/Documents/ansible_collections/hpe/monkeyble/plugins/module_utils
callback_plugins = /home/my_user/Documents/ansible_collections/hpe/monkeyble/plugins/callback
callbacks_enabled = monkeyble_callback
jinja2_native = True