community.rabbitmq.rabbitmq_binding module – Manage rabbitMQ bindings
Note
This module is part of the community.rabbitmq collection (version 1.4.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
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.rabbitmq.rabbitmq_binding
.
Synopsis
This module uses rabbitMQ REST APIs to create / delete bindings.
Requirements
The below requirements are needed on the host that executes this module.
requests >= 1.0.0
Parameters
Parameter |
Comments |
---|---|
extra arguments for exchange. If defined this argument is a key/value dictionary Default: |
|
CA certificate to verify SSL connection to management API. |
|
Client certificate to send on SSL connections to management API. |
|
Private key matching the client certificate. |
|
destination exchange or queue for the binding. |
|
Either queue or exchange. Choices:
|
|
RabbitMQ host for connection. Default: |
|
RabbitMQ password for connection. Default: |
|
RabbitMQ management API port. Default: |
|
RabbitMQ management API protocol. Choices:
|
|
RabbitMQ user for connection. Default: |
|
source exchange to create binding on. |
|
routing key for the binding. Default: |
|
Whether the bindings should be present or absent. Choices:
|
|
RabbitMQ virtual host. Default: |
Examples
- name: Bind myQueue to directExchange with routing key info
community.rabbitmq.rabbitmq_binding:
name: directExchange
destination: myQueue
type: queue
routing_key: info
- name: Bind directExchange to topicExchange with routing key *.info
community.rabbitmq.rabbitmq_binding:
name: topicExchange
destination: topicExchange
type: exchange
routing_key: '*.info'