aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/main.yml
blob: a9dc4d23896c56984d9a7cb5c9e270b7f613467e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
# tasks file for ansible-rabbitmq
- include: debian.yml
  when: ansible_os_family == "Debian"

- include: redhat.yml
  when: >
        ansible_distribution == "CentOS" or
        ansible_distribution == "Red Hat Enterprise Linux" or
        ansible_distribution == "OracleLinux"

- include: fedora.yml
  when: ansible_distribution == "Fedora"

- include: config.yml
  when: rabbitmq_config_service

- name: checking to see if already clustered
  stat:
    path: /etc/rabbitmq/clustered
  become: true
  register: clustered

- include: rabbitmq_clustering.yml
  when: >
        rabbitmq_enable_clustering and
        not clustered['stat']['exists']

- include: rabbitmq_vhosts.yml
  when: rabbitmq_extra_vhosts is defined

- include: rabbitmq_ha_config.yml
  when: >
        rabbitmq_config_ha and
        rabbitmq_enable_clustering and
        rabbitmq_config is defined

- include: rabbitmq_users.yml
  when: rabbitmq_users is defined