<h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">core</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="devel
ansible 2.0.0 (detached HEAD b2cb3153f1) last updated 2015/09/03 230737 (GMT +200)
lib/ansible/modules/core (detached HEAD bbcfb1092a) last updated 2015/09/03 230739 (GMT +200)
lib/ansible/modules/extras (detached HEAD b8803306d1) last updated 2015/09/03 230739 (GMT +200)
config file =
configured module search path = /root/ansible/library"><pre class="notranslate"><code class="notranslate">devel
ansible 2.0.0 (detached HEAD b2cb3153f1) last updated 2015/09/03 230737 (GMT +200)
lib/ansible/modules/core (detached HEAD bbcfb1092a) last updated 2015/09/03 230739 (GMT +200)
lib/ansible/modules/extras (detached HEAD b8803306d1) last updated 2015/09/03 230739 (GMT +200)
config file =
configured module search path = /root/ansible/library
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">none</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Debian 7</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Hi, unfortunately version 2.0 seems slow down.<br>
With a real playbook: v2 run within 32 secs, v2, stable-1.9 19 secs.<br>
Same conditions (target machine, control machine), no network congestions (local net), no network downloads.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">time ansible-playbook -i hosts simplespeedtest.yml &gt; /dev/null</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
# simplespeedtest.yml
- hosts: localhost
  tasks:
    - command: echo 1
    - command: echo 2
#  and so on
    - command: echo 30"><pre class="notranslate"><code class="notranslate">---
# simplespeedtest.yml
- hosts: localhost
  tasks:
    - command: echo 1
    - command: echo 2
#  and so on
    - command: echo 30
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">ansible stable-1.9<br>
ansible 1.9.3 (detached HEAD <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/066b7079effbb97f34510a2b4d84b4b6dda56794/hovercard" href="https://github.com/ansible/ansible/commit/066b7079effbb97f34510a2b4d84b4b6dda56794"><tt>066b707</tt></a>) last updated 2015/09/03 23:19:28 (GMT +200)<br>
lib/ansible/modules/core: (detached HEAD dccef8f89a) last updated 2015/09/03 23:17:15 (GMT +200)<br>
lib/ansible/modules/extras: (detached HEAD 25595b4ecc) last updated 2015/09/03 23:17:15 (GMT +200)<br>
configured module search path = /root/ansible/library<br>
real    0m2.608s<br>
user    0m1.776s<br>
sys 0m0.464s<br>
real    0m2.476s<br>
user    0m1.656s<br>
sys 0m0.468s<br>
real    0m2.497s<br>
user    0m1.688s<br>
sys 0m0.444s</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">real    0m3.848s<br>
user    0m2.484s<br>
sys 0m0.496s<br>
real    0m3.524s<br>
user    0m2.208s<br>
sys 0m0.376s<br>
real    0m3.926s<br>
user    0m2.396s<br>
sys 0m0.544s</p>
<h5 dir="auto">Issue Type:</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 2.0.1.0<br>
config file =<br>
configured module search path = Default w/o overrides</p>
<h5 dir="auto">Ansible Configuration:</h5>
<p dir="auto">default</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">Default role variable is overwritten by other role declaration in <code class="notranslate">meta/main.yml</code> file. See <code class="notranslate">ert</code> variable in example. This bug was introduced in 2 version. Version 1.9.4 hasn't this issue.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">test.yml:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- name: Test
  hosts: localhost
  roles:
    - rover"><pre class="notranslate"><code class="notranslate">
---
- name: Test
  hosts: localhost
  roles:
    - rover
</code></pre></div>
<p dir="auto">host:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="127.0.0.1 ansible_connection=local"><pre class="notranslate"><code class="notranslate">127.0.0.1 ansible_connection=local
</code></pre></div>
<p dir="auto">roles/rover/meta/main.yml:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
dependencies:
  - role: roter
    bar: test_bar1
    ert: test_ert1
  - role: roter
    bar: test_bar2"><pre class="notranslate"><code class="notranslate">
---
dependencies:
  - role: roter
    bar: test_bar1
    ert: test_ert1
  - role: roter
    bar: test_bar2
</code></pre></div>
<p dir="auto">roles/roter/defaults/main.yml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
bar: default_bar
ert: default_ert"><pre class="notranslate"><code class="notranslate">
---
bar: default_bar
ert: default_ert
</code></pre></div>
<p dir="auto">roles/roter/tasks/main.yml:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- debug: var=bar
- debug: var=ert"><pre class="notranslate"><code class="notranslate">
---
- debug: var=bar
- debug: var=ert
</code></pre></div>
<p dir="auto">Run ansible:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -i host test.yml"><pre class="notranslate"><code class="notranslate">ansible-playbook -i host test.yml
</code></pre></div>
<h5 dir="auto">Expected Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [Test] ********************************************************************

TASK [setup] *******************************************************************
ok: [127.0.0.1]

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    &quot;bar&quot;: &quot;test_bar1&quot;
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    &quot;ert&quot;: &quot;test_ert1&quot;
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    &quot;bar&quot;: &quot;test_bar2&quot;
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    &quot;ert&quot;: &quot;default_ert&quot;
}

PLAY RECAP *********************************************************************
127.0.0.1                  : ok=5    changed=0    unreachable=0    failed=0"><pre class="notranslate"><code class="notranslate">PLAY [Test] ********************************************************************

TASK [setup] *******************************************************************
ok: [127.0.0.1]

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    "bar": "test_bar1"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    "ert": "test_ert1"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    "bar": "test_bar2"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    "ert": "default_ert"
}

PLAY RECAP *********************************************************************
127.0.0.1                  : ok=5    changed=0    unreachable=0    failed=0
</code></pre></div>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [Test] ********************************************************************

TASK [setup] *******************************************************************
ok: [127.0.0.1]

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    &quot;bar&quot;: &quot;test_bar1&quot;
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    &quot;ert&quot;: &quot;test_ert1&quot;
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    &quot;bar&quot;: &quot;test_bar2&quot;
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    &quot;ert&quot;: &quot;test_ert1&quot;
}

PLAY RECAP *********************************************************************
127.0.0.1                  : ok=5    changed=0    unreachable=0    failed=0"><pre class="notranslate"><code class="notranslate">PLAY [Test] ********************************************************************

TASK [setup] *******************************************************************
ok: [127.0.0.1]

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    "bar": "test_bar1"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    "ert": "test_ert1"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    "bar": "test_bar2"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] =&gt; {
    "ert": "test_ert1"
}

PLAY RECAP *********************************************************************
127.0.0.1                  : ok=5    changed=0    unreachable=0    failed=0
</code></pre></div>