-
Notifications
You must be signed in to change notification settings - Fork 1
/
rabbitmq-standalone.yml
49 lines (44 loc) · 1.34 KB
/
rabbitmq-standalone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
- hosts: demo
gather_facts: yes
roles:
- role: erlang
vars:
erlang_series: 23
erlang_series_rpm_version: 23.3.4.11-1.el7
- role: rabbitmq
vars:
#rabbitmq_series: 3.8
rabbitmq_series: 3.9
#rabbitmq_series_rpm_version: 3.8.30
#rabbitmq_series_rpm_version: 3.9.10
rabbitmq_series_rpm_version: 3.9.16
#AMQP端口
rabbitmq_erlang_config: |
{rabbit, [
{tcp_listeners, [{"{{ ansible_default_ipv4['address'] }}", 28861}]}
]
}
rabbitmq_env_config:
NODENAME: "{{ ansible_nodename }}"
RABBITMQ_MNESIA_BASE: "/data/rabbitmq/data" # 定义MQ数据目录
RABBITMQ_LOG_BASE: "/data/rabbitmq/logs" # 定义MQ日志目录
#USE_LONGNAME: "true"
rabbitmq_node_name: "{{ ansible_nodename }}"
rabbitmq_users_to_create:
- user: admin
password: admin
vhost: /
configure_priv: .*
read_priv: .*
write_priv: .*
tags: administrator
rabbitmq_users_to_delete:
- guest
rabbitmq_plugins_to_enable:
- rabbitmq_management
- rabbitmq_shovel
rabbitmq_management_port: 15672 # web管理端口
rabbitmq_hide_log: false
tags:
- rabbitmq