]>
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 | |
8 | ansible_distribution == "Red Hat Enterprise Linux" | |
109c6b75 LSJ |
9 | |
10 | - include: fedora.yml | |
11 | when: ansible_distribution == "Fedora" | |
12 | ||
a67dde50 LSJ |
13 | - include: config.yml |
14 | when: rabbitmq_config_service | |
15 | ||
109c6b75 LSJ |
16 | - name: checking to see if already clustered |
17 | stat: path=/etc/rabbitmq/clustered | |
18 | register: clustered | |
19 | ||
20 | - include: rabbitmq_clustering.yml | |
a67dde50 LSJ |
21 | when: > |
22 | rabbitmq_enable_clustering and | |
23 | not clustered['stat']['exists'] | |
109c6b75 LSJ |
24 | |
25 | - include: rabbitmq_ha_config.yml | |
a67dde50 LSJ |
26 | when: > |
27 | rabbitmq_config_ha and | |
28 | rabbitmq_enable_clustering and | |
29 | rabbitmq_config is defined | |
109c6b75 LSJ |
30 | |
31 | - include: rabbitmq_users.yml | |
a67dde50 | 32 | when: rabbitmq_users is defined |