title: using registered variables from .podman_container_info module
body: <p>I'm attempting to use a registered variable from the output from the <a href="https://docs.ansible.com/ansible/latest/collections/containers/podman/podman_container_info_module.html" rel="nofollow noreferrer">containers.podman.podman_container_info</a> ansible module. Basically I'm doing this the following</p>
  <pre><code>- name: checking if gitlab-runner is present
    containers.podman.podman_container_info:
      name: gitlab-runner
    register: gitlabrunner_status
  </code></pre>
  <p>However, the next step I want to add a conditional to only run the next step if this container is defined based on the name. For testing I'm just using the debug module, so here is what I have tried.</p>
  <pre><code>- name: debug
    debug:
      var: gitlabrunner_status.containers.Name
  </code></pre>
  <pre><code>- name: debug
    debug:
      var: gitlabrunner_status[&quot;containers&quot;][&quot;Name&quot;]
  </code></pre>
  <p>each attempt I ended up getting <code>VARIABLE IS NOT DEFINED!</code> So how can I just pull the name from the output to use in a conditional, from this complex output.</p>