Added pre installation and unindtallation
[ealt-edge.git] / ocd / infra / playbooks / roles / rabbitmq / tasks / install.yml
index 757b616..6960ddd 100644 (file)
   shell:
     cmd: kubectl get pods rabbitmq-0
   register: result
-  ignore_errors: true
+  failed_when: false
+  no_log: True
+
+- debug:
+    msg: Rabbitmq is already present
+  when: result.rc == 0
+
+- meta: end_play
+  when: result.rc == 0
 
 - name: copy common folder to host for rabbitmg installation
   copy: