From 1c1a414010e7577751b242f9bb67acf36c85406c Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 15 Dec 2019 01:24:04 +0000 Subject: [PATCH] pdc: Only setup the rabbit user once, not twice: once for each pdc-web server. Signed-off-by: Kevin Fenzi --- playbooks/groups/pdc.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/pdc.yml b/playbooks/groups/pdc.yml index e7f7fea98b..9598c72749 100644 --- a/playbooks/groups/pdc.yml +++ b/playbooks/groups/pdc.yml @@ -48,7 +48,8 @@ when: deployment_type == "prod" } # Set up for fedora-messaging - { role: rabbit/user, - username: "pdc{{ env_suffix }}"} + username: "pdc{{ env_suffix }}", + when: inventory_hostname.startswith(('pdc-web01','pdc-web01.stg')) } - pdc/frontend - name: stuff just for the backend nodes