add openstack rabbitmq user

This commit is contained in:
Egon Rijpkema 2017-07-13 09:42:10 +02:00
parent 70814e1a77
commit 91ace4d87d

View File

@ -23,3 +23,10 @@
- "rabbitmqctl join_cluster rabbit_{{ hostname_node0 }}@{{ hostname_node0 }}"
- rabbitmqctl start_app
when: ansible_nodename != hostname_node0
- name: create openstack user
command: "docker exec -i rabbitmq.service {{ item }}"
with_items:
- rabbitmqctl add_user openstack geheim
- rabbitmqctl set_permissions openstack ".*" ".*" ".*"
when: ansible_nodename == hostname_node0