Skip to content

Commit

Permalink
Using bare variables is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
devjatkin committed Apr 22, 2016
1 parent b457881 commit 9d6deb7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tasks/federation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
name={{ item.name }}
vhost={{ item.vhost | default('/', false) }}
value='{{ item.value }}'
with_items: rabbitmq_federation_configuration
with_items: "{{ rabbitmq_federation_configuration }}"

- name: set the policy for the federation
rabbitmq_policy:
name={{ item.name }}
vhost={{ item.vhost | default('/', false) }}
pattern={{ item.pattern }}
tags={{ item.tags }}
with_items: rabbitmq_policy_configuration
with_items: "{{ rabbitmq_policy_configuration }}"

- name: get the version of rabbitmq
shell: rabbitmqctl status | awk '{print $NF}'
Expand All @@ -39,5 +39,5 @@
name=local-username
value='"{{ item.local_username | default( 'guest', false ) }}"'
vhost={{ item.vhost | default( '/', false) }}
with_items: rabbitmq_federation_configuration
with_items: "{{ rabbitmq_federation_configuration }}"
when: rabbitmq_version.stdout | version_compare('3.3.0', '<')
2 changes: 1 addition & 1 deletion tasks/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
name={{ item }}
state=disabled
notify: restart rabbitmq-server
with_items: result.stdout_lines
with_items: "{{ result.stdout_lines }}"
when: rabbitmq_plugins == []
4 changes: 2 additions & 2 deletions tasks/vhost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
node={{ item.node | default('rabbit') }}
tracing={{ item.tracing | default('no') }}
state=present
with_items: rabbitmq_vhost_definitions
with_items: "{{ rabbitmq_vhost_definitions }}"

- name: add rabbitmq user and set privileges
rabbitmq_user:
Expand All @@ -22,7 +22,7 @@
write_priv={{ item.write_priv | default('.*') }}
state=present
force={{ item.force|default('yes') }}
with_items: rabbitmq_users_definitions
with_items: "{{ rabbitmq_users_definitions }}"

- name: remove guest user (hostname)
rabbitmq_user:
Expand Down

0 comments on commit 9d6deb7

Please sign in to comment.