Provision one- or multi-node mongodb cluster
If mongodb_metrics is true install mongodb_exporter using binary release. Handlers for restart/reload events.
Use it in a playbook as follows:
- hosts: all
become: true
roles:
- paulfantom.mongodb
Have a look at the defaults/main.yml for role variables that can be overridden.