mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update rabbitmq example
This commit is contained in:
parent
12755b8961
commit
777dbc1048
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
|||
apt_repository: repo='deb http://www.rabbitmq.com/debian/ testing main' state=present
|
||||
|
||||
- name: install rabbitmq
|
||||
apt: pkg=rabbitmq-server=$rabbitmq_version state=installed force=yes
|
||||
apt: pkg=rabbitmq-server={{rabbitmq_version}} state=installed force=yes
|
||||
|
||||
- name: enable rabbitmq plugins
|
||||
rabbitmq_plugin: names=rabbitmq_management,rabbitmq_tracing,rabbitmq_federation state=enabled
|
||||
|
@ -20,7 +20,7 @@
|
|||
- restart rabbitmq
|
||||
|
||||
- name: add users
|
||||
rabbitmq_user: user=$item password=changeme tags=administrator,$item vhost=/ configure_priv=.* write_priv=.* read_priv=.* state=present
|
||||
rabbitmq_user: user={{item}} password=changeme tags=administrator,{{item}} vhost=/ configure_priv=.* write_priv=.* read_priv=.* state=present
|
||||
with_items:
|
||||
- user1
|
||||
- user2
|
||||
|
|
Loading…
Reference in a new issue