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