title: How to get a specific line from Ansible nested register output
body: <p>So I'm trying to get a specific row/line from Ansible register output. But since my output is quiet nested I can't seem to get the right value I want.</p>
  
  <p>Playbook looks as followed, </p>
  
  <pre><code>---
  - name: Get some piece of information
    *some Ansible module*:
      epg_info: First_EPG 
      state: query
    register: epg_info
  
  - debug:
      var: epg_info
  ...
  
  </code></pre>
  
  <p>So you see I use a network module provided by Ansible to query the information of the "First_EPG" and register it inside epg_info. Next I debug it and these are the lines I get,</p>
  
  <pre><code>ok: [... . ... . ... . ...] =&gt; {
      "epg_info": {
          "changed": false,
          "msg": "All items completed",
          "results": [
              {
                  "_ansible_ignore_errors": null,
                  "changed": false,
                  "current": [
                      {
                          "fvAEPg": {
                              "attributes": {
                                  "annotation": "",
                                  "dn": "THIS IS THE LINE I WANT TO HAVE",
                                  "exceptionTag": "",
                                  "extMngdBy": "",
                              },
                      }
                    } 
                  } 
                } 
              } 
  </code></pre>
  
  <p><em>Dont mind the number of "{}" cause the list is a whole lot longer, I just narrowed it down for ease of use.</em></p>
  
  <p>As you can see the list is quiet nested, and the only line I want to have is the "dn" one and store this value in another list.</p>
  
  <p>Any ideas of how I can get only that line?</p>