community.rabbitmq.rabbitmq_policy – Manage the state of policies in RabbitMQ
Note
This plugin is part of the community.rabbitmq collection (version 1.1.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.rabbitmq
.
To use it in a playbook, specify: community.rabbitmq.rabbitmq_policy
.
Parameters
Parameter |
Comments |
---|---|
What the policy applies to. Requires RabbitMQ 3.2.0 or later. Choices:
|
|
The name of the policy to manage. |
|
Erlang node name of the rabbit we wish to configure. Default: “rabbit” |
|
A regex of queues to apply the policy to. Required when |
|
The priority of the policy. Default: “0” |
|
The state of the policy. Choices:
|
|
A dict or string describing the policy. Required when |
|
The name of the vhost to apply to. Default: “/” |
Examples
- name: ensure the default vhost contains the HA policy via a dict
community.rabbitmq.rabbitmq_policy:
name: HA
pattern: .*
args:
tags:
ha-mode: all
- name: ensure the default vhost contains the HA policy
community.rabbitmq.rabbitmq_policy:
name: HA
pattern: .*
tags:
ha-mode: all
Authors
John Dewey (@retr0h)