ansible-role-rabbitmq/tasks/topics.yml

40 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2020-12-27 03:52:59 +00:00
---
2020-12-30 00:07:26 +00:00
# Create our topics
- name: Create the zmq.topic exchange in the pubsub vhost
run_once: true
delegate_to: "{{ rabbitmq_cluster_list[0] }}"
community.rabbitmq.rabbitmq_exchange:
name: "zmq.topic"
exchange_type: "topic"
vhost: "pubsub"
2020-12-31 04:14:11 +00:00
login_user: rockyadmin
2020-12-30 00:07:26 +00:00
login_password: "{{ rabbitmq_admin_password }}"
tags:
- rabbitmq_cluster
- name: Create the zmq.topic exchange in the public pubsub vhost
run_once: true
delegate_to: "{{ rabbitmq_cluster_list[0] }}"
community.rabbitmq.rabbitmq_exchange:
name: "zmq.topic"
exchange_type: "topic"
vhost: "public_pubsub"
2020-12-31 04:14:11 +00:00
login_user: rockyadmin
2020-12-30 00:07:26 +00:00
login_password: "{{ rabbitmq_admin_password }}"
tags:
- rabbitmq_cluster
- name: Forward all zmq.topic and amq.topic in public_pubsub
run_once: true
delegate_to: "{{ rabbitmq_cluster_list[0] }}"
community.rabbitmq.rabbitmq_binding:
destination_type: exchange
name: zmq.topic
dest: amq.topic
routing_key: "#"
vhost: "public_pubsub"
2020-12-31 04:14:11 +00:00
login_user: rockyadmin
2020-12-30 00:07:26 +00:00
login_password: "{{ rabbitmq_admin_password }}"
tags:
- rabbitmq_cluster