title: Ansible: How to specify an array or list element fact with yaml?
body: <p>When we check hostvars with:</p>
  
  <pre><code>  - name: Display all variables/facts known for a host
      debug: var=hostvars[inventory_hostname]
  </code></pre>
  
  <p>We get:</p>
  
  <pre><code>ok: [default] =&gt; {
      "hostvars[inventory_hostname]": {
          "admin_email": "admin@surfer190.com", 
          "admin_user": "root", 
          "ansible_all_ipv4_addresses": [
              "192.168.35.19", 
              "10.0.2.15"
          ],...
  </code></pre>
  
  <p>How would I specify the first element of the <code>"ansible_all_ipv4_addresses"</code> list?</p>