From 4a851d7426b49d3a878e4edff7e70881bfbbe6bc Mon Sep 17 00:00:00 2001 From: Joe Talerico Date: Tue, 24 Nov 2015 15:06:39 -0500 Subject: [PATCH] Added check for rabbitmq partitions --- ansible/roles/controller/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ansible/roles/controller/tasks/main.yml b/ansible/roles/controller/tasks/main.yml index d876248e9..5a3e2632a 100644 --- a/ansible/roles/controller/tasks/main.yml +++ b/ansible/roles/controller/tasks/main.yml @@ -16,3 +16,10 @@ changed_when: no failed_when: rabbitmq_fd_result.stdout|int < rabbitmq_fd ignore_errors: True + +- name : Check rabbitmq for partitions + shell: rabbitmqctl cluster_status | grep partitions -A 1 | grep -q controller + register: rabbitmq_partition_result + changed_when: no + failed_when: rabbitmq_partition_result.rc == 0 + ignore_errors: True