From 71120079ebad6c0a479072cad8fee7b210b892db Mon Sep 17 00:00:00 2001 From: Larry Smith Jr Date: Thu, 6 Aug 2015 22:02:02 -0400 Subject: fixed stat check --- README.md | 2 +- tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 28b2b03..4d1266a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Installs rabbitmq https://www.rabbitmq.com/ (Configurable...HA and Clustering re Requirements ------------ -Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. +Ensure hostnames are resolvable prior to clustering...either update /etc/hosts or ensure DNS is working. Role Variables -------------- diff --git a/tasks/main.yml b/tasks/main.yml index edd55df..cd24ad2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,7 +7,7 @@ register: clustered - include: rabbitmq_clustering.yml - when: enable_rabbitmq_clustering and not clustered.stat.exists + when: enable_rabbitmq_clustering and (clustered.stat.exists != True) - include: rabbitmq_ha_config.yml when: config_rabbitmq_ha and enable_rabbitmq_clustering -- cgit v1.2.3