Skip to content

Commit 59c5889

Browse files
committed
Support new version of ansible
1 parent cd51d4a commit 59c5889

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tasks/cluster/checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- name: check | cluster group should be valid
44
fail:
55
msg="Your configuration is not valid 'rabbitmq_cluster_group' varaible with value '{{ rabbitmq_cluster_group }}' is not valid group."
6-
when: "{{ groups[rabbitmq_cluster_group] is not defined }}"
6+
when: groups[rabbitmq_cluster_group] is not defined
77

88
- name: check | get rabbitmq version in each node in the cluster
99
shell: rabbitmqctl status|grep "{rabbit,\"RabbitMQ\"" | cut -d, -f3 | cut -d "\"" -f2
@@ -25,4 +25,4 @@
2525
fail:
2626
msg="Rabbiqmq version in cluster dont match. Node versions = {{rabbit_cluster_nodes_version }}"
2727
run_once: true
28-
when: "{{ rabbit_cluster_nodes_version | selectattr('version', 'equalto', rabbit_cluster_nodes_version[0]['version']) | list != rabbit_cluster_nodes_version }}"
28+
when: rabbit_cluster_nodes_version | selectattr('version', 'equalto', rabbit_cluster_nodes_version[0]['version']) | list != rabbit_cluster_nodes_version

tasks/cluster/cluster.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
shell: "rabbitmqctl cluster_status | grep {{ rabbitmq_cluster_instance_to_join }}"
55
changed_when: False
66
ignore_errors: True
7-
when: "{{ rabbitmq_cluster_instance_to_join != ansible_fqdn }}"
7+
when: rabbitmq_cluster_instance_to_join != ansible_fqdn
88
register: cluster_result
99

1010
- name: cluster | stop rabbitmq app for standalone nodes in order to join

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
when: rabbitmq_federation
1515

1616
- include: policy.yml
17-
when: "rabbitmq_policy_configuration is defined"
17+
when: rabbitmq_policy_configuration is defined
1818

1919
- block:
2020
- include: cluster/checks.yml

0 commit comments

Comments
 (0)