Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.

Commit a331f35

Browse files
Update rabbitmq.yml
Adding in variable password based one user. a list of items with unique passwords rather than a common password.
1 parent c11ffef commit a331f35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

language_features/rabbitmq.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
- restart rabbitmq
2727

2828
- name: add users
29-
rabbitmq_user: user={{item}} password=changeme tags=administrator,{{item}} vhost=/ configure_priv=.* write_priv=.* read_priv=.* state=present
29+
rabbitmq_user: user={{item.username}} password={{item.password}} tags=administrator,{{item}} vhost=/ configure_priv=.* write_priv=.* read_priv=.* state=present
3030
with_items:
31-
- user1
32-
- user2
31+
- { username: user1, password: changeme }
32+
- { username: user2, password: changeme }
3333

3434
- name: remove default guest user
3535
rabbitmq_user: user=guest state=absent

0 commit comments

Comments
 (0)