title: How to enforce the order of with_dict in Ansible?
body: <p>I have dictionary-type of data that I want to iterate through and keeping the order is important:</p>
  
  <pre><code>with_dict_test:
    one:   1
    two:   2
    three: 3
    four:  4
    five:  5
    six:   6
  </code></pre>
  
  <p>Now when I write a task to print the keys and values, they are printed in seemingly random order (6, 3, 1, 4, 5, 2).</p>
  
  <pre><code>---
  - name: with_dict test
    debug: msg="{{item.key}} --&gt; {{item.value}}"
    with_dict: with_dict_test
  </code></pre>
  
  <p>How can I enforce Ansible to iterate in the given order? Or is there anything better suited than <code>with_dict</code>? I really need both the key and the value during task execution...</p>