community.rabbitmq.rabbitmq_binding – Manage rabbitMQ bindings
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_binding
.
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: “localhost” |
|
RabbitMQ password for connection. Default: “guest” |
|
RabbitMQ management API port. Default: “15672” |
|
RabbitMQ management API protocol. Choices:
|
|
RabbitMQ user for connection. Default: “guest” |
|
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
# Bind myQueue to directExchange with routing key info
- community.rabbitmq.rabbitmq_binding:
name: directExchange
destination: myQueue
type: queue
routing_key: info
# Bind directExchange to topicExchange with routing key *.info
- community.rabbitmq.rabbitmq_binding:
name: topicExchange
destination: topicExchange
type: exchange
routing_key: '*.info'
Authors
Manuel Sousa (@manuel-sousa)