]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/blame - tasks/main.yml
Add OracleLinux to RHEL
[github/fretlink/ansible-rabbitmq.git] / tasks / main.yml
CommitLineData
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
LSJ
17- name: checking to see if already clustered
18 stat: path=/etc/rabbitmq/clustered
19 register: clustered
20
21- include: rabbitmq_clustering.yml
a67dde50
LSJ
22 when: >
23 rabbitmq_enable_clustering and
24 not clustered['stat']['exists']
109c6b75
LSJ
25
26- include: rabbitmq_ha_config.yml
a67dde50
LSJ
27 when: >
28 rabbitmq_config_ha and
29 rabbitmq_enable_clustering and
30 rabbitmq_config is defined
109c6b75
LSJ
31
32- include: rabbitmq_users.yml
a67dde50 33 when: rabbitmq_users is defined