pdc: Only setup the rabbit user once, not twice: once for each pdc-web server.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-12-15 01:24:04 +00:00 committed by Pierre-Yves Chibon
parent 98861f823a
commit 1c1a414010

View file

@ -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