From 9025fecdf73b56fef7e648224254a0fad98f876e Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 15 Dec 2019 21:03:57 +0000 Subject: [PATCH] wiki: Only try and make the rabbitmq user on wiki01/wiki01.stg, not both. Signed-off-by: Kevin Fenzi --- playbooks/groups/wiki.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/groups/wiki.yml b/playbooks/groups/wiki.yml index 15401f9db5..0c0e5bce7d 100644 --- a/playbooks/groups/wiki.yml +++ b/playbooks/groups/wiki.yml @@ -29,7 +29,7 @@ - { role: fedmsg/base, when: deployment_type == "prod" } # Set up for fedora-messaging - - { role: rabbit/user, username: "wiki{{ env_suffix }}"} + - { role: rabbit/user, username: "wiki{{ env_suffix }}", when: inventory_hostname.startswith('wiki01') } - { role: rabbit/queue, username: "wiki{{ env_suffix }}", queue_name: "wiki{{ env_suffix }}"} - { role: nfs/client, when: env == "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app_staging/app/attachments' } - { role: nfs/client, when: env != "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app/app/attachments' }