shell:
cmd: kubectl get pods rabbitmq-0
register: result
- ignore_errors: true
+ ignore_errors: yes
+ no_log: True
+
+- debug:
+ msg: rabbitmq is already present
+ when: result.stdout != ""
+
+- debug:
+# yamllint disable rule:line-length
+ msg: Ignore Uninstall Log , rabbitmq not installed continue with Installation
+# yamllint disable rule:line-length
+ when: result.stdout == ""
- name: copy common folder to host for rabbitmg installation
copy: