aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/mq/tasks/rabbitmq_config.yml
diff options
context:
space:
mode:
authorshuai chen <chenshuai@huawei.com>2015-12-10 06:52:34 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-12-10 06:52:35 +0000
commit01bf8315641200a49964d378d0ff88f43e7d8bf5 (patch)
tree1e64c6d17c126005bda0f7e8b963f5466f042a3c /deploy/adapters/ansible/roles/mq/tasks/rabbitmq_config.yml
parente408668e84f138f69317ff63e68b823dfe80188b (diff)
parentf691dbc6f7b6d686012fce2f4f6ce59d4549d0fe (diff)
Merge "rabbitmq script refactor"
Diffstat (limited to 'deploy/adapters/ansible/roles/mq/tasks/rabbitmq_config.yml')
-rw-r--r--deploy/adapters/ansible/roles/mq/tasks/rabbitmq_config.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/mq/tasks/rabbitmq_config.yml b/deploy/adapters/ansible/roles/mq/tasks/rabbitmq_config.yml
new file mode 100644
index 00000000..5eeccd65
--- /dev/null
+++ b/deploy/adapters/ansible/roles/mq/tasks/rabbitmq_config.yml
@@ -0,0 +1,15 @@
+---
+- name: remove default guest user is removed
+ rabbitmq_user:
+ user: guest
+ state: absent
+
+- name: add rabbitmq user
+ rabbitmq_user:
+ user='{{ RABBIT_USER }}'
+ password='{{ RABBIT_PASS }}'
+ vhost=/
+ configure_priv=.*
+ write_priv=.*
+ read_priv=.*
+ state=present