title: Loop through a registered variable with with_dict in Ansible
body: <p>How to refer to elements of dictionary of a registered value.</p>
  
  <p>My Ansible playbook look like this :</p>
  
  <pre><code>- command: echo {{ item }}
    with_dict:
      - foo
      - bar
      - baz
    register: echos
  </code></pre>
  
  <p>Registered variable "echos" will be a dictionary :</p>
  
  <pre><code> {
  
  "changed": true,
  "msg": "All items completed",
  "results": [
      {
          "changed": true,
          "cmd": [
              "echo",
              "foo"
          ],
          "delta": "0:00:00.002780",
          "end": "2014-06-08 16:57:52.843478",
          "invocation": {
              "module_args": "echo foo",
              "module_name": "command"
          },
          "item": "foo",
          "rc": 0,
          "start": "2014-06-08 16:57:52.840698",
          "stderr": "",
          "stdout": "foo"
      },
      {
          "changed": true,
          "cmd": [
              "echo",
              "bar"
          ],
          "delta": "0:00:00.002736",
          "end": "2014-06-08 16:57:52.911243",
          "invocation": {
              "module_args": "echo bar",
              "module_name": "command"
          },
          "item": "bar",
          "rc": 0,
          "start": "2014-06-08 16:57:52.908507",
          "stderr": "",
          "stdout": "bar"
      },
      {
          "changed": true,
          "cmd": [
              "echo",
              "baz"
          ],
          "delta": "0:00:00.003050",
          "end": "2014-06-08 16:57:52.979928",
          "invocation": {
              "module_args": "echo baz",
              "module_name": "command"
          },
          "item": "baz",
          "rc": 0,
          "start": "2014-06-08 16:57:52.976878",
          "stderr": "",
          "stdout": "baz"
      }
  ]
  </code></pre>
  
  <p>}</p>
  
  <p>Now if i want to refer to "changed" field of "foo" dictionary element of echos dictionary , How do i do that ??</p>