Ansible role which manage RabbitMQ.
rabbitmq_enabled: yes
rabbitmq_plugins: # Ensure the plugins is installed
- rabbitmq_management
rabbitmq_users: # Ensure the users added
- user: admin
password: admin
vhost: /
configure_priv: .*
read_priv: .*
write_priv: .*
tags: administrator
rabbitmq_vhosts: [] # Ensure the vhosts are exists
rabbitmq_users_remove: # Ensure the users removed
- guest
Add Stouts.rabbitmq
to your roles and set vars in your playbook file.
Example:
- hosts: all
roles:
- Stouts.rabbitmq
vars:
rabbitmq_vhosts: [myhost]
Licensed under the MIT License. See the LICENSE file for details.
Are welcome!