community / community.rabbitmq / 1.3.0 / module / rabbitmq_binding Manage rabbitMQ bindings Authors: Manuel Sousa (@manuel-sousa)community.rabbitmq.rabbitmq_binding (1.3.0) — module
Install with ansible-galaxy collection install community.rabbitmq:==1.3.0
collections: - name: community.rabbitmq version: 1.3.0
This module uses rabbitMQ REST APIs to create / delete bindings.
- 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'
name: aliases: - src - source description: - source exchange to create binding on. required: true type: str state: choices: - present - absent default: present description: - Whether the bindings should be present or absent. type: str vhost: default: / description: - RabbitMQ virtual host. type: str ca_cert: aliases: - cacert description: - CA certificate to verify SSL connection to management API. type: path arguments: default: {} description: - extra arguments for exchange. If defined this argument is a key/value dictionary required: false type: dict client_key: aliases: - key description: - Private key matching the client certificate. type: path login_host: default: localhost description: - RabbitMQ host for connection. type: str login_port: default: '15672' description: - RabbitMQ management API port. type: str login_user: default: guest description: - RabbitMQ user for connection. type: str client_cert: aliases: - cert description: - Client certificate to send on SSL connections to management API. type: path destination: aliases: - dst - dest description: - destination exchange or queue for the binding. required: true type: str routing_key: default: '#' description: - routing key for the binding. type: str login_password: default: guest description: - RabbitMQ password for connection. type: str login_protocol: choices: - http - https default: http description: - RabbitMQ management API protocol. type: str destination_type: aliases: - type - dest_type choices: - queue - exchange description: - Either queue or exchange. required: true type: str