]> git.immae.eu Git - github/fretlink/ansible-rabbitmq.git/commitdiff
Merge pull request #23 from paulrbr-fl/clustering-admin-tasks
authorLarry Smith Jr <mrlesmithjr@gmail.com>
Thu, 20 Dec 2018 19:58:48 +0000 (14:58 -0500)
committerGitHub <noreply@github.com>
Thu, 20 Dec 2018 19:58:48 +0000 (14:58 -0500)
clustering: make sure to delegate admin tasks to the master node

1  2 
defaults/main.yml
tasks/rabbitmq_users.yml

Simple merge
index 82aa73416931591e2f620750b7bbc0953fae8b07,083c70471016c94a87fea6126258500ec9d6fa18..7bba65ec5a840ef4915551520737adc1f6b1d1a6
    rabbitmq_user:
      name: "{{ item['name'] }}"
      password: "{{ item['password'] }}"
 -    vhost: "{{ item['vhost'] }}"
 -    configure_priv: "{{ item['configure_priv'] }}"
 -    read_priv: "{{ item['read_priv'] }}"
 -    write_priv: "{{ item['write_priv'] }}"
 -    tags: "{{ item['tags'] }}"
 +    vhost: "{{ item['vhost']|default(omit) }}"
 +    configure_priv: "{{ item['configure_priv']|default(omit) }}"
 +    read_priv: "{{ item['read_priv']|default(omit) }}"
 +    write_priv: "{{ item['write_priv']|default(omit) }}"
 +    tags: "{{ item['tags']|default(omit) }}"
 +    permissions: "{{ item['permissions']|default(omit) }}"
      state: present
    run_once: yes
+   delegate_to: "{{ rabbitmq_master }}"
    become: true
    with_items: "{{ rabbitmq_users }}"
    when: >