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/module
module_utils = /path/to/monkeyble/plugins/module_utils
callback_plugins = /path/to/monkeyble/plugins/callback
callbacks_enabled = monkeyble_callback
; jinja2_native is native starting from Ansible 2.19, but it is mandatory to interpret correctly null values when using Ansible < 2.19.
;jinja2_native = True
Note
jinja2_native is mandatory to interpret correctly null values when using Ansible < 2.19.
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 with ansible-galaxy and git repo:
ansible-galaxy collection install git+https://github.com/HewlettPackard/monkeyble
Install Monkeyble with ansible-galaxy:
ansible-galaxy collection install hpe.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
callbacks_enabled = hpe.monkeyble.monkeyble_callback
jinja2_native = True