title: ansible - loop through fact and process each set of values
body: <p>I have set a fact </p>
  
  <pre><code>set_fact:
    props: "{{ parse_result.stdout | from_json }}"
  </code></pre>
  
  <p>The fact looks something like this:</p>
  
  <pre><code>{
      "changed": false,
      "ansible_facts": {
          "props": [
              {
                  "build_number": "1.0.0.2",
                  "build_name": "AppXYZ"
              },
              {
                  "build_number": "1.2.0.2",
                  "build_name": "AppABC"
              }
          ]
      },
      "_ansible_no_log": false
  }
  </code></pre>
  
  <p>I want to loop through the fact and process each set of build_name and build_number. I have tried the below code, but sometimes it would throw me an error like 'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'build_definition_name'. What am I doing wrong?</p>
  
  <pre><code>my_deploy_module:
    build_name: "{{ item.build_name }}"
    build_number: "{{ item.build_number }}"
  with_items: "{{ props }}"
  </code></pre>