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