title: Get Key if value is true
body: <p>i have a Playbook that looks like this:</p>
  
  <pre><code>---
  - hosts: localhost
    gather_facts: no
    vars:
      netapp_hostname: "hostname"
    tasks:
      - debug:
          msg: "{{ ontap_info.ontap_info.aggregate_info }}"
      - debug:
          msg: "{{ ontap_info.ontap_info.aggregate_info|list }}"
    roles:
     - get_aggr_max_free
  ...
  </code></pre>
  
  <p>i get a dict as output that looks like this:</p>
  
  <pre><code>        "aggr1_hyb_fas_01": { 
              "aggr_raid_attributes": { 
                  ...
                  "is_mirrored": "false" 
                  ...  
              },  
          "aggr1_sl_fas_02": { 
              "aggr_raid_attributes": { 
                  ...
                  "is_mirrored": "false" 
                  ...
          }
  
  ok: [localhost] =&gt; {
      "msg": [
          "aggr0_sata_fas_01", 
          "aggr0_sata_fas_02", 
          "aggr1_hyb_fas_01", 
          "aggr1_sl_fas_02"
      ]
  }
  </code></pre>
  
  <p>I want to print the aggregate name, for example <code>aggr1_hyb_fas_01</code> only if <code>"is_mirrored": "true"</code> but i don't know the aggregate name before play.
  There are more <code>aggr_raid_attributes</code> but i had to cut them.</p>
  
  <p>Ty for helping </p>