ansible-collections / community.rabbitmq

Manage RabbitMQ with Ansible
http://galaxy.ansible.com/community/rabbitmq
Other
30 stars 46 forks source link

Allow all (supported) values for apply_to parameter of policies #167

Open frittentheke opened 6 months ago

frittentheke commented 6 months ago
SUMMARY

Currently this module only allows policies that apply_to either all, queues or exchanges (https://github.com/ansible-collections/community.rabbitmq/blob/1341c198b2fc85cd8f88c82212451f555c5dd4a4/plugins/modules/rabbitmq_policy.py#L34), while RabbitMQ has more options:

The "apply-to" argument can be one of the following:

"exchanges", applies to exchanges only
"queues", applies to all types of queues, including streams
"classic_queues", applies to classic queues only
"quorum_queues", applies to quorum queues only
"streams", applies to streams only
"all", applies to all exchanges and queues (including streams)

(https://www.rabbitmq.com/docs/parameters#how-policies-work)

ISSUE TYPE
COMPONENT NAME

community.rabbitmq.rabbitmq_policy

ADDITIONAL INFORMATION