]>
Commit | Line | Data |
---|---|---|
ee7f4e7c | 1 | --- |
109c6b75 LSJ |
2 | # tasks file for ansible-rabbitmq |
3 | - include: debian.yml | |
4 | when: ansible_os_family == "Debian" | |
5 | ||
6 | - include: redhat.yml | |
a67dde50 LSJ |
7 | when: > |
8 | ansible_distribution == "CentOS" or | |
718e4133 NA |
9 | ansible_distribution == "Red Hat Enterprise Linux" or |
10 | ansible_distribution == "OracleLinux" | |
109c6b75 LSJ |
11 | |
12 | - include: fedora.yml | |
13 | when: ansible_distribution == "Fedora" | |
14 | ||
a67dde50 LSJ |
15 | - include: config.yml |
16 | when: rabbitmq_config_service | |
17 | ||
109c6b75 | 18 | - name: checking to see if already clustered |
2cf26261 LSJ |
19 | stat: |
20 | path: /etc/rabbitmq/clustered | |
f0d4a369 | 21 | become: true |
109c6b75 LSJ |
22 | register: clustered |
23 | ||
24 | - include: rabbitmq_clustering.yml | |
a67dde50 LSJ |
25 | when: > |
26 | rabbitmq_enable_clustering and | |
27 | not clustered['stat']['exists'] | |
109c6b75 | 28 | |
84d38251 PB |
29 | - include: rabbitmq_vhosts.yml |
30 | when: rabbitmq_extra_vhosts is defined | |
31 | ||
109c6b75 | 32 | - include: rabbitmq_ha_config.yml |
a67dde50 LSJ |
33 | when: > |
34 | rabbitmq_config_ha and | |
35 | rabbitmq_enable_clustering and | |
36 | rabbitmq_config is defined | |
109c6b75 LSJ |
37 | |
38 | - include: rabbitmq_users.yml | |
a67dde50 | 39 | when: rabbitmq_users is defined |