ansible / ansible.builtin / v2.8.15 / module / rabbitmq_policy Manage the state of policies in RabbitMQ | "added in version" 1.5 of ansible.builtin" Authors: John Dewey (@retr0h) preview | supported by communityansible.builtin.rabbitmq_policy (v2.8.15) — module
pip
Install with pip install ansible==2.8.15
Manage the state of a policy in RabbitMQ.
- name: ensure the default vhost contains the HA policy via a dict rabbitmq_policy: name: HA pattern: .* args: tags: ha-mode: all
- name: ensure the default vhost contains the HA policy rabbitmq_policy: name: HA pattern: .* tags: ha-mode: all
name: description: - The name of the policy to manage. required: true node: default: rabbit description: - Erlang node name of the rabbit we wish to configure. tags: description: - A dict or string describing the policy. required: true state: choices: - present - absent default: present description: - The state of the policy. vhost: default: / description: - The name of the vhost to apply to. pattern: description: - A regex of queues to apply the policy to. required: true apply_to: choices: - all - exchanges - queues default: all description: - What the policy applies to. Requires RabbitMQ 3.2.0 or later. version_added: '2.1' version_added_collection: ansible.builtin priority: default: 0 description: - The priority of the policy.