Skip to content

Commit

Permalink
Update configure.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mira-miracoli authored Apr 12, 2023
1 parent 949fd44 commit f0f29ce
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
---
- name: collect vhosts
community.docker.docker_container_exec:
container: "{{ rabbitmq_container.name }}"
command: rabbitmqctl list_vhosts
register: list_vhosts

- name: collect users
community.docker.docker_container_exec:
container: "{{ rabbitmq_container.name }}"
Expand All @@ -23,7 +17,6 @@
container: "{{ rabbitmq_container.name }}"
command: "rabbitmqctl add_vhost {{ item.vhost }}"
loop: "{{ rabbitmq_users }}"
when: "item.vhost not in list_vhosts.stdout"
ignore_errors: "{{ ansible_check_mode }}"

- name: Create users
Expand Down

0 comments on commit f0f29ce

Please sign in to comment.