rabbitmq_binding – This module manages rabbitMQ bindings
rabbitmq_binding – This module manages rabbitMQ bindings
New in version 2.0.
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 | Choices/Defaults | Comments |
---|---|---|
arguments - |
Default: {} |
extra arguments for exchange. If defined this argument is a key/value dictionary. |
destination - / required |
destination exchange or queue for the binding.
| |
destination_type - / required |
|
Either queue or exchange.
|
login_host - |
Default: "localhost" |
rabbitMQ host for the connection. |
login_password - |
Default: "no" |
rabbitMQ password for the connection. |
login_port - |
Default: 15672 |
rabbitMQ management API port. |
login_user - |
Default: "guest" |
rabbitMQ user for the connection. |
name - / required |
source exchange to create binding on.
| |
routing_key - |
Default: "#" |
routing key for the binding. |
state - |
|
Whether the bindings should be present or absent. Only present implemented at the momemt. |
vhost - |
Default: "/" |
rabbitMQ virtual host. |
Examples
# Bind myQueue to directExchange with routing key info
- rabbitmq_binding:
name: directExchange
destination: myQueue
type: queue
routing_key: info
# Bind directExchange to topicExchange with routing key *.info
- rabbitmq_binding:
name: topicExchange
destination: topicExchange
type: exchange
routing_key: '*.info'
Status
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors
- Manuel Sousa (@manuel-sousa)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/rabbitmq_binding_module.html