aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/rabbitmq_users.yml
diff options
context:
space:
mode:
authorLarry Smith Jr <mrlesmithjr@gmail.com>2015-11-13 02:56:48 -0500
committerLarry Smith Jr <mrlesmithjr@gmail.com>2015-11-13 02:56:48 -0500
commit93a297c59940c7cfe88afe0f9110af5b4be521e3 (patch)
tree1d3f3904ecb83138f557f9a3ed40e72e032a3bfc /tasks/rabbitmq_users.yml
parent93f90e27f24275f9ccca908a2d77543dfa9bb379 (diff)
downloadansible-rabbitmq-93a297c59940c7cfe88afe0f9110af5b4be521e3.tar.gz
ansible-rabbitmq-93a297c59940c7cfe88afe0f9110af5b4be521e3.tar.zst
ansible-rabbitmq-93a297c59940c7cfe88afe0f9110af5b4be521e3.zip
updated tasks, fixed broken HA configuration tasks
Diffstat (limited to 'tasks/rabbitmq_users.yml')
-rw-r--r--tasks/rabbitmq_users.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/tasks/rabbitmq_users.yml b/tasks/rabbitmq_users.yml
new file mode 100644
index 0000000..e14d390
--- /dev/null
+++ b/tasks/rabbitmq_users.yml
@@ -0,0 +1,27 @@
1---
2- name: rabbitmq_users | creating rabbitmq users
3 rabbitmq_user:
4 name: "{{ item.name }}"
5 password: "{{ item.password }}"
6 vhost: "{{ item.vhost }}"
7 configure_priv: "{{ item.configure_priv }}"
8 read_priv: "{{ item.read_priv }}"
9 write_priv: "{{ item.write_priv }}"
10 tags: "{{ item.tags }}"
11 state: present
12 with_items: rabbitmq_users
13 when: (enable_rabbitmq_clustering is defined and not enable_rabbitmq_clustering) or enable_rabbitmq_clustering is not defined
14
15- name: rabbitmq_users | creating rabbitmq users
16 rabbitmq_user:
17 name: "{{ item.name }}"
18 password: "{{ item.password }}"
19 vhost: "{{ item.vhost }}"
20 configure_priv: "{{ item.configure_priv }}"
21 read_priv: "{{ item.read_priv }}"
22 write_priv: "{{ item.write_priv }}"
23 tags: "{{ item.tags }}"
24 state: present
25 run_once: yes
26 with_items: rabbitmq_users
27 when: (enable_rabbitmq_clustering is defined and enable_rabbitmq_clustering)