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