messaging/base: try to depend on rabbit/user automatically

This commit is contained in:
Pavel Raiskup 2019-06-28 23:30:25 +02:00
parent 1f78af15fc
commit c6f7513c38
2 changed files with 8 additions and 3 deletions

View file

@ -48,6 +48,3 @@
- nagios_client
- { role: messaging/base,
when: devel }
- { role: rabbit/user,
username: "copr{{ env_suffix }}",
when: devel }

View file

@ -51,3 +51,11 @@
with_items: "{{ messaging.certificates }}"
tags:
- fedora-messaging
- name: "make sure the user {{ item.username }} exists on broker"
include_role: name=rabbit/user
vars:
- username: "{{ item.username }}{{ env_suffix }}"
with_items: "{{ messaging.certificates }}"
tags:
- fedora-messaging