add openstack rabbitmq user
This commit is contained in:
parent
70814e1a77
commit
91ace4d87d
@ -23,3 +23,10 @@
|
|||||||
- "rabbitmqctl join_cluster rabbit_{{ hostname_node0 }}@{{ hostname_node0 }}"
|
- "rabbitmqctl join_cluster rabbit_{{ hostname_node0 }}@{{ hostname_node0 }}"
|
||||||
- rabbitmqctl start_app
|
- rabbitmqctl start_app
|
||||||
when: ansible_nodename != hostname_node0
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user