From: Larry Smith Jr Date: Thu, 20 Dec 2018 19:58:48 +0000 (-0500) Subject: Merge pull request #23 from paulrbr-fl/clustering-admin-tasks X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=ba3197ed9f9a1ddbb2acb9735449fac47c559e18;p=github%2Ffretlink%2Fansible-rabbitmq.git Merge pull request #23 from paulrbr-fl/clustering-admin-tasks clustering: make sure to delegate admin tasks to the master node --- ba3197ed9f9a1ddbb2acb9735449fac47c559e18 diff --cc tasks/rabbitmq_users.yml index 82aa734,083c704..7bba65e --- a/tasks/rabbitmq_users.yml +++ b/tasks/rabbitmq_users.yml @@@ -21,14 -20,14 +21,15 @@@ 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: >