diff --git a/releasenotes/notes/applyToPolicies-f4cb13dac7ec82b0.yaml b/releasenotes/notes/applyToPolicies-f4cb13dac7ec82b0.yaml new file mode 100644 index 00000000..12807a3b --- /dev/null +++ b/releasenotes/notes/applyToPolicies-f4cb13dac7ec82b0.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + RabbitMQ policies now support the `apply_to` parameter to e.g have a policy + target only classic_queues, exchanges, ... \ No newline at end of file diff --git a/tasks/rabbitmq_post_install.yml b/tasks/rabbitmq_post_install.yml index d690c2e2..f9066f3d 100644 --- a/tasks/rabbitmq_post_install.yml +++ b/tasks/rabbitmq_post_install.yml @@ -80,6 +80,7 @@ node: "rabbit@{{ ansible_facts['hostname'] }}" name: "{{ item.name }}" pattern: "{{ item.pattern }}" + apply_to: "{{ item.apply_to | default(omit) }}" priority: "{{ item.priority | default(0) }}" state: "{{ item.state | default(omit) }}" tags: "{{ item.tags }}"