Use newer when syntax
Change-Id: I608a0d6006fa9543f59a4077d5ccc2eee79748aa
This commit is contained in:
parent
f57dbb1929
commit
e5df2e4dd8
@ -18,8 +18,8 @@
|
||||
name: rabbitmq-server
|
||||
state: started
|
||||
enabled: yes
|
||||
when: >
|
||||
ansible_hostname == rabbitmq_primary_cluster_node
|
||||
when:
|
||||
- ansible_hostname == rabbitmq_primary_cluster_node
|
||||
tags:
|
||||
- rabbitmq-server-started
|
||||
- rabbitmq-upgrade
|
||||
@ -30,8 +30,8 @@
|
||||
name: rabbitmq-server
|
||||
state: started
|
||||
enabled: yes
|
||||
when: >
|
||||
ansible_hostname != rabbitmq_primary_cluster_node
|
||||
when:
|
||||
- ansible_hostname != rabbitmq_primary_cluster_node
|
||||
tags:
|
||||
- rabbitmq-server-started
|
||||
- rabbitmq-upgrade
|
||||
|
@ -18,8 +18,8 @@
|
||||
name: rabbitmq-server
|
||||
state: stopped
|
||||
failed_when: false
|
||||
when: >
|
||||
ansible_hostname != rabbitmq_primary_cluster_node
|
||||
when:
|
||||
- ansible_hostname != rabbitmq_primary_cluster_node
|
||||
tags:
|
||||
- rabbitmq-server-stopped
|
||||
- rabbitmq-upgrade
|
||||
@ -30,8 +30,8 @@
|
||||
name: rabbitmq-server
|
||||
state: stopped
|
||||
failed_when: false
|
||||
when: >
|
||||
ansible_hostname == rabbitmq_primary_cluster_node
|
||||
when:
|
||||
- ansible_hostname == rabbitmq_primary_cluster_node
|
||||
tags:
|
||||
- rabbitmq-server-stopped
|
||||
- rabbitmq-upgrade
|
||||
|
Loading…
Reference in New Issue
Block a user