title: How to ensure that POD is deleted using ansible?
body: <p>I am trying to validate that the pod is deleted. </p>
  
  <pre><code>- name: Verify whether the POD is deleted
    command: "{{ local_kubectl }} get pod {{ pod_name}}"
  </code></pre>
  
  <p>but the task is failing as the command displays error as below</p>
  
  <blockquote>
    <p>'Error from server (NotFound): pods   ....'</p>
  </blockquote>
  
  <p>But this is expected when i am checking for deletion of pod. </p>
  
  <p>How to pass this task when it returns an error message?</p>