From 109c6b750751d1c5cd216ad2f09258cf512c4c9e Mon Sep 17 00:00:00 2001 From: Larry Smith Jr Date: Sat, 3 Dec 2016 17:51:25 -0500 Subject: Addressed issue #6 Signed-off-by: Larry Smith Jr --- Vagrant/roles/ansible-rabbitmq/tasks/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Vagrant/roles/ansible-rabbitmq/tasks/main.yml (limited to 'Vagrant/roles/ansible-rabbitmq/tasks/main.yml') diff --git a/Vagrant/roles/ansible-rabbitmq/tasks/main.yml b/Vagrant/roles/ansible-rabbitmq/tasks/main.yml new file mode 100644 index 0000000..bd82f93 --- /dev/null +++ b/Vagrant/roles/ansible-rabbitmq/tasks/main.yml @@ -0,0 +1,21 @@ +# 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" + +- include: fedora.yml + when: ansible_distribution == "Fedora" + +- name: checking to see if already clustered + stat: path=/etc/rabbitmq/clustered + register: clustered + +- include: rabbitmq_clustering.yml + when: rabbitmq_enable_clustering and (clustered.stat.exists != True) + +- include: rabbitmq_ha_config.yml + when: rabbitmq_config_ha and rabbitmq_enable_clustering + +- include: rabbitmq_users.yml -- cgit v1.2.3