no_log: True
- debug:
- msg: Rabbitmq is not present
- when: result.rc == 2
+ msg: Uninstalling rabbitmq...
+ when: result.stdout != ""
+
+- debug:
+ msg: Ignore Uninstall Log , Rabbitmq not installed
+ when: result.stdout == ""
- name: Uninstalling rabbitmq
shell: