--- - name: Set policies rabbitmq_policy: apply_to: "{{ item.apply_to | default(omit) }}" name: "{{ item.name | default('default_policy') }}" pattern: "{{ item.pattern | default(omit) }}" priority: "{{ item.priority | default(omit) }}" state: "{{ item.state | default(omit) }}" node: "{{ item.node | default(omit) }}" vhost: "{{ item.vhost | default(omit) }}" args: tags: "{{ item.tags | default(omit) }}" loop: "{{ rabbitmq_policies }}"