New in version 2.0.
The below requirements are needed on the host that executes this module.
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
aliases: dst, dest |
destination_type
required |
|
Either queue or exchange
aliases: type, dest_type |
login_host
|
Default:
localhost
|
rabbitMQ host for connection
|
login_password
|
Default:
no
|
rabbitMQ password for connection
|
login_port
|
Default:
15672
|
rabbitMQ management api port
|
login_user
|
Default:
guest
|
rabbitMQ user for connection
|
name
required |
|
source exchange to create binding on
aliases: src, source |
routing_key
|
Default:
#
|
routing key for the binding
default is
|
state
|
|
Whether the exchange should be present or absent
Only present implemented atm
|
vhost
|
Default:
/
|
rabbitMQ virtual host
default vhost is /
|
# 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'
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
Hint
If you notice any issues in this documentation you can edit this document to improve it.