]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/blame - tasks/main.yml
Fixed missing become on task
[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
f0d4a369 19 become: true
109c6b75
LSJ
20 register: clustered
21
22- include: rabbitmq_clustering.yml
a67dde50
LSJ
23 when: >
24 rabbitmq_enable_clustering and
25 not clustered['stat']['exists']
109c6b75
LSJ
26
27- include: rabbitmq_ha_config.yml
a67dde50
LSJ
28 when: >
29 rabbitmq_config_ha and
30 rabbitmq_enable_clustering and
31 rabbitmq_config is defined
109c6b75
LSJ
32
33- include: rabbitmq_users.yml
a67dde50 34 when: rabbitmq_users is defined