title: Ansible random UUID generation
body: <p>In my Ansible script, I want to generate UUIDs on the fly and use them later on.</p>
  
  <p>Here is my approach:</p>
  
  <pre><code>- shell: echo uuidgen
    with_sequence: count=5
    register: uuid_list
  
  
    - uri: 
        url: http://www.myapi.com
        method: POST
        body: "{{ item.item.stdout }}"
      with_items: uuid_list.result
  </code></pre>
  
  <p>However I get the following error:</p>
  
  <pre><code>fatal: [localhost] =&gt; One or more undefined variables: 'str object' has no attribute 'stdout'
  </code></pre>
  
  <p>How can I solve this issue?</p>