Use newer when syntax

Change-Id: I608a0d6006fa9543f59a4077d5ccc2eee79748aa
This commit is contained in:
Major Hayden 2017-06-21 07:32:27 -05:00
parent f57dbb1929
commit e5df2e4dd8
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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