Merge "Allow to provide policy state"
This commit is contained in:
commit
34819a10ac
@ -261,6 +261,12 @@ rabbitmq_disable_non_tls_listeners: False
|
||||
# pattern: '^(event|metering|notifications)\.'
|
||||
# tags: "ha-sync-mode=automatic"
|
||||
# priority: 0
|
||||
# state:present
|
||||
# If policy needs to be removed, provide `state: absent`
|
||||
# - name: "HA"
|
||||
# pattern: '^(?!(amq\.)|(.*_fanout_)|(reply_)).*'
|
||||
# tags: "ha-mode=all"
|
||||
# state: absent
|
||||
#
|
||||
rabbitmq_policies: []
|
||||
rabbitmq_apply_openstack_policies: False
|
||||
|
@ -88,6 +88,7 @@
|
||||
name: "{{ item.name }}"
|
||||
pattern: "{{ item.pattern }}"
|
||||
priority: "{{ item.priority | default(0) }}"
|
||||
state: "{{ item.state | default(omit) }}"
|
||||
tags: "{{ item.tags }}"
|
||||
register: rabbitmq_policy
|
||||
loop: "{{ (rabbitmq_apply_openstack_policies | bool) | ternary(rabbitmq_openstack_policies + rabbitmq_policies, rabbitmq_policies) }}"
|
||||
|
Loading…
Reference in New Issue
Block a user