From: Larry Smith Jr Date: Fri, 7 Aug 2015 02:02:02 +0000 (-0400) Subject: fixed stat check X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=71120079ebad6c0a479072cad8fee7b210b892db;hp=1e134d616962cde50ab0b79156620422d169413f;p=github%2Ffretlink%2Fansible-rabbitmq.git fixed stat check --- 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