diff --git a/tasks/rabbitmq_feature_flags.yml b/tasks/rabbitmq_feature_flags.yml index 33b047a0..d9be1fc7 100644 --- a/tasks/rabbitmq_feature_flags.yml +++ b/tasks/rabbitmq_feature_flags.yml @@ -17,6 +17,7 @@ command: "rabbitmqctl cluster_status --formatter json" register: _cluster_status changed_when: False + failed_when: False tags: - rabbitmq-upgrade @@ -38,6 +39,7 @@ when: - (_feature_flags.stdout_lines | length)> 0 when: + - _cluster_status.rc == 0 - ((_cluster_status.stdout | from_json)['running_nodes'] | length) == (groups[rabbitmq_host_group] | length) - ((_cluster_status.stdout | from_json)['alarms'] | length) == 0 - ((_cluster_status.stdout | from_json)['partitions'] | length) == 0