# RabbitMQ Ansible Role ## Version Set the `rabbitmq_version` and `erlang_version` variables to define the version of RabbitMQ and Erlang to install. ```yaml rabbitmq_version: 3.9.8 erlang_version: 24.1.3 ``` ## Users Set the `rabbitmq_users` variable to define an array of present users. ```yaml rabbitmq_users: - user: admin password: admin tags: administrator ``` | parameter | required | default | choices | comments | | -------------- | -------- | ------- | ------- | -------- | | configure_priv | no | .* | | | | password | yes | | | | | read_priv | no | .* | | | | tags | no | | | | | user | yes | | | | | vhost | no | / | | | | write_priv | no | .* | | | ### Remove Users Set the `rabbitmq_users_absent` variable to define an array of absent users. ```yaml rabbitmq_users_absent: - guest ``` ## Policies Set the `rabbitmq_policies` variable to define policies ```yaml rabbitmq_policies: - name: HA pattern: .* tags: ha-mode: exactly ha-params: 2 ``` ## Virtual Hosts Set the `rabbitmq_vhosts` variable to define an array of present virtual hosts. ```yaml rabbitmq_vhosts: - /one - name: /two node: rabbit tracing: no ``` | parameter | required | default | choices | comments | | ---------- | -------- | ------- | -------------------------------- | -------- | | name | yes | | | | | node | no | rabbit | | | | tracing | no | no |