Logs added with msgs
[ealt-edge.git] / ocd / infra / playbooks / roles / rabbitmq / tasks / uninstall.yml
index c32f55f..14c1276 100644 (file)
   shell:
     cmd: kubectl get pods rabbitmq-0
   register: result
-  failed_when: false
+  ignore_errors: yes
   no_log: True
 
 - debug:
-    msg: Rabbitmq is not present
-  when: result.rc == 2
+    msg: Uninstalling rabbitmq...
+  when: result.stdout != ""
 
-- meta: end_play
-  when: result.rc == 2
+- debug:
+    msg: Ignore Uninstall Log , Rabbitmq not installed
+  when: result.stdout == ""
 
 - name: Uninstalling rabbitmq
   shell: