diff --git a/roles/rabbitmq_cluster/tasks/main.yml b/roles/rabbitmq_cluster/tasks/main.yml index 6e191f870e..1b278f85e2 100644 --- a/roles/rabbitmq_cluster/tasks/main.yml +++ b/roles/rabbitmq_cluster/tasks/main.yml @@ -228,19 +228,11 @@ rabbitmq_user: user: admin password: "{{ rabbitmq_admin_password_staging }}" - permissions: - - vhost: / - configure_priv: .* - read_priv: .* - write_priv: .* - - vhost: /pubsub - configure_priv: .* - read_priv: .* - write_priv: .* - - vhost: /public_pubsub - configure_priv: .* - read_priv: .* - write_priv: .* + vhost: / + configure_priv: .* + read_priv: .* + write_priv: .* + state: present tags: management when: env == "staging" and inventory_hostname.startswith('rabbitmq01') tags: @@ -251,19 +243,11 @@ rabbitmq_user: user: admin password: "{{ rabbitmq_admin_password_production }}" - permissions: - - vhost: / - configure_priv: .* - read_priv: .* - write_priv: .* - - vhost: /pubsub - configure_priv: .* - read_priv: .* - write_priv: .* - - vhost: /public_pubsub - configure_priv: .* - read_priv: .* - write_priv: .* + vhost: / + configure_priv: .* + read_priv: .* + write_priv: .* + state: present tags: management when: env == "production" and inventory_hostname.startswith('rabbitmq01') tags: