mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
rabbitmq_binding: Add support for state=absent (#48599)
* rabbitmq_binding: Add support for state=absent * Add integration tests for rabbitmq_binding * Update testcases * Add changelog fragment
This commit is contained in:
parent
6291efd4ea
commit
9c02ade536
8 changed files with 184 additions and 9 deletions
|
@ -6,6 +6,7 @@
|
|||
rabbitmq_plugin:
|
||||
name: "{{ plugin_name }}"
|
||||
state: enabled
|
||||
new_only: True
|
||||
register: result
|
||||
|
||||
- name: Get rabbitmq-plugins output
|
||||
|
@ -18,13 +19,14 @@
|
|||
- result is changed
|
||||
- result is success
|
||||
- '"{{ plugin_name }}" in result.enabled'
|
||||
- result.disabled== []
|
||||
- result.disabled == []
|
||||
- '"[E" in cli_result.stdout'
|
||||
|
||||
- name: Enable plugin (idempotency)
|
||||
rabbitmq_plugin:
|
||||
name: "{{ plugin_name }}"
|
||||
state: enabled
|
||||
new_only: True
|
||||
register: result
|
||||
|
||||
- name: Check idempotency
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue