title: Ansible loop over a list to define a dynamic dictionary
body: <p>I am trying to define a <code>dictionary</code> <code>FACTS_VAR</code> in which the <code>key</code> must contain the word <code>SUB.</code> <code>Argument_value</code> and the <code>value</code> is <code>true</code> but when I loop over the variable <code>Argument</code></p>
  <pre class="lang-yaml prettyprint-override"><code>hosts: all
  gather_facts: true
  
  vars:
  
    Argument:
      - value1
      - value2                      
  
  tasks:
  
  - name: DEFINING A variable
    set_fact:
      FACTS_VAR: {'SUB..item': true}
    loop: &quot;{{Argument}}&quot;
  
  - debug:
      var: FACTS_VAR
  </code></pre>
  <p>I got this result so I don't know what is missing there. I am expecting to get a dictionary like this</p>
  <pre><code>FACTS_ENTRY:
     SUB.value1: true
     SUB.value2: true
  
  </code></pre>
  <pre class="lang-yaml prettyprint-override"><code>TASK [debug] *****************************************************************************************************************
  ok: [control] =&gt; {
      &quot;FACTS_ENTRY&quot;: {
          &quot;SUB..item&quot;: true
      }
  }
  ok: [ansible4] =&gt; {
      &quot;FACTS_ENTRY&quot;: {
          &quot;SUB..item&quot;: true
      }
  </code></pre>