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:
Jon Bergli Heier 2018-12-04 13:42:18 +01:00 committed by John R Barker
commit 9c02ade536
8 changed files with 184 additions and 9 deletions

View file

@ -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