title: multiple string search with failed_when in ansible
body: <p>Team, 
  somehow not able to figure out what error is this.. I am doing a multiple string search and failing accordingly for each string not found. </p>
  
  <pre><code>      - name: "Validate kubectl access and k8s node lables"
          debug:
            msg: "kubectl get nodes --show-labels -l nodeType={{item}}"
          with_items:
            - gpu
            - cpu
            - monitoring
          register: k8s_labelsresponse
  
        - debug:
            var: k8s_labelsresponse.stdout
          failed_when: '"nodeType=gpu" not in k8s_labelsresponse.stdout or "nodeType=cpu" not in k8s_labelsresponse.stdout or "nodeType=monitoring" not in k8s_labelsresponse.stdout'
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>TASK [Validate kubectl access and k8s node lables] 
  ok: [target1] =&gt; (item=gpu) =&gt; {
      "msg": "kubectl get nodes --show-labels -l nodeType=gpu"
  }
  ok: [target1] =&gt; (item=cpu) =&gt; {
      "msg": "kubectl get nodes --show-labels -l nodeType=cpu"
  }
  ok: [target1] =&gt; (item=monitoring) =&gt; {
      "msg": "kubectl get nodes --show-labels -l nodeType=monitoring"
  }
  </code></pre>
  
  <pre><code>TASK [debug] **************************************************************************************************************************************************
  fatal: [target1]: FAILED! =&gt; {"msg": "The conditional check '\"nodeType=gpu\" not in k8s_labelsresponse.stdout or \"nodeType=cpu\" not in k8s_labelsresponse.stdout or \"nodeType=monitoring\" not in k8s_labelsresponse.stdout' failed. The error was: error while evaluating conditional (\"nodeType=gpu\" not in k8s_labelsresponse.stdout or \"nodeType=cpu\" not in k8s_labelsresponse.stdout or \"nodeType=monitoring\" not in k8s_labelsresponse.stdout): Unable to look up a name or access an attribute in template string ({% if \"nodeType=gpu\" not in k8s_labelsresponse.stdout or \"nodeType=cpu\" not in k8s_labelsresponse.stdout or \"nodeType=monitoring\" not in k8s_labelsresponse.stdout %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'AnsibleUndefined' is not iterable"}
  
  </code></pre>