Skip to content

Commit

Permalink
make it working with ansible 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kiselev committed Dec 4, 2016
1 parent 676c5ec commit 2602c18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/rabbitmq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@

- name: Ensure the users is removed
rabbitmq_user: user="{{ item }}" state=absent
with_items: rabbitmq_users_removed
with_items: "{{ rabbitmq_users_removed }}"
tags: [configuration,rabbitmq]

- name: Ensure the vhosts is present
rabbitmq_vhost: name="{{ item }}"
with_items: rabbitmq_vhosts
with_items: "{{ rabbitmq_vhosts }}"
tags: [configuration,rabbitmq]

- name: Ensure the users is present
Expand All @@ -20,7 +20,7 @@
write_priv: "{{ item.write_priv|default('.*') }}"
vhost: "{{ item.vhost|default('/') }}"
tags: "{{ item.tags|default('') }}"
with_items: rabbitmq_users
with_items: "{{ rabbitmq_users }}"
tags: [configuration,rabbitmq]

- name: ensure the default vhost contains the HA policy
Expand All @@ -36,7 +36,7 @@

- name: Enable the plugins is installed
rabbitmq_plugin: names="{{ item }}" state=enabled prefix=/usr/lib/rabbitmq
with_items: rabbitmq_plugins
with_items: "{{ rabbitmq_plugins }}"
notify: restart rabbitmq-server
tags: [configuration,rabbitmq]

0 comments on commit 2602c18

Please sign in to comment.