title: Ansible merge 2 arrays
body: <p>I am trying to merge the following 2 arrays using Ansible: </p>
  
  <pre><code>TASK [Show var1] ****************************************************************************
  ok: [localhost] =&gt; {
      "var1": [
          {
              "id": "133"
          },
          {
              "id": "149"
          },
          {
              "id": "188"
          }
      ]
  }
  
  </code></pre>
  
  <p>and</p>
  
  <pre><code>TASK [Show var2] ****************************************************************************
  ok: [localhost] =&gt; {
      "var2": [
          {
              "name": "two"
          },
          {
              "name": "one"
          },
          {
              "name": "three"
          }
      ]
  }
  </code></pre>
  
  <p>The result should be:</p>
  
  <pre><code>    "var1": [
          {
              "id": "133",
              "name": "two"
          },
          {
              "id": "149",
              "name": "one"
          },
          {
              "id": "188",
              "name": "three"
          }
      ]
  </code></pre>
  
  <p>My efforts for merging so far...returned only the last pair. How can I get the whole arrays merged?</p>