From 9e7074570c69505bc29543e14b7587a80c55186b Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Thu, 4 Apr 2019 23:04:55 +0000 Subject: [PATCH] rabbitmq_cluster: Create the public vhost before the admin user The admin user needs access to the public vhost, but it needs to exist first. --- roles/rabbitmq_cluster/tasks/main.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/roles/rabbitmq_cluster/tasks/main.yml b/roles/rabbitmq_cluster/tasks/main.yml index 1d3bfe787c..64287a7b65 100644 --- a/roles/rabbitmq_cluster/tasks/main.yml +++ b/roles/rabbitmq_cluster/tasks/main.yml @@ -128,6 +128,17 @@ - rabbitmq_cluster - config +# This is the publicly accessible virtual host +- name: Configure the publicly accessible vhost + run_once: true + delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org" + rabbitmq_vhost: + name: /public_pubsub + state: present + tags: + - rabbitmq_cluster + - config + - name: Configure the HA policy for queues on the pubsub virtual rabbitmq_policy: name: HA @@ -191,17 +202,6 @@ - rabbitmq_cluster - config -# This is the publicly accessible virtual host -- name: Configure the publicly accessible vhost - run_once: true - delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org" - rabbitmq_vhost: - name: /public_pubsub - state: present - tags: - - rabbitmq_cluster - - config - - name: Create the zmq.topic exchange in /public_pubsub run_once: true delegate_to: "rabbitmq01{{ env_suffix }}.phx2.fedoraproject.org"