Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

core

ANSIBLE VERSION

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

CONFIGURATION

none

OS / ENVIRONMENT

Debian 7

SUMMARY

Hi, unfortunately version 2.0 seems slow down.

With a real playbook: v2 run within 32 secs, v2, stable-1.9 19 secs.

Same conditions (target machine, control machine), no network congestions (local net), no network downloads.

STEPS TO REPRODUCE

time ansible-playbook -i hosts simplespeedtest.yml > /dev/null

---
# simplespeedtest.yml
- hosts: localhost
tasks:
- command: echo 1
- command: echo 2
# and so on
- command: echo 30

EXPECTED RESULTS

ansible stable-1.9

ansible 1.9.3 (detached HEAD 066b707) last updated 2015/09/03 23:19:28 (GMT +200)

lib/ansible/modules/core: (detached HEAD dccef8f89a) last updated 2015/09/03 23:17:15 (GMT +200)

lib/ansible/modules/extras: (detached HEAD 25595b4ecc) last updated 2015/09/03 23:17:15 (GMT +200)

configured module search path = /root/ansible/library

real 0m2.608s

user 0m1.776s

sys 0m0.464s

real 0m2.476s

user 0m1.656s

sys 0m0.468s

real 0m2.497s

user 0m1.688s

sys 0m0.444s

ACTUAL RESULTS

real 0m3.848s

user 0m2.484s

sys 0m0.496s

real 0m3.524s

user 0m2.208s

sys 0m0.376s

real 0m3.926s

user 0m2.396s

sys 0m0.544s

Issue 2:
Issue Type:

Bug Report

Ansible Version:

ansible 2.0.1.0

config file =

configured module search path = Default w/o overrides

Ansible Configuration:

default

Environment:

N/A

Summary:

Default role variable is overwritten by other role declaration in meta/main.yml file. See ert variable in example. This bug was introduced in 2 version. Version 1.9.4 hasn't this issue.

Steps To Reproduce:

test.yml:

---
- name: Test
hosts: localhost
roles:
- rover

host:

127.0.0.1 ansible_connection=local

roles/rover/meta/main.yml:

---
dependencies:
- role: roter
bar: test_bar1
ert: test_ert1
- role: roter
bar: test_bar2

roles/roter/defaults/main.yml

---
bar: default_bar
ert: default_ert

roles/roter/tasks/main.yml:

---
- debug: var=bar
- debug: var=ert

Run ansible:

ansible-playbook -i host test.yml

Expected Results:

PLAY [Test] ********************************************************************

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

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] => {
"bar": "test_bar1"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] => {
"ert": "test_ert1"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] => {
"bar": "test_bar2"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] => {
"ert": "default_ert"
}

PLAY RECAP *********************************************************************
127.0.0.1 : ok=5 changed=0 unreachable=0 failed=0

Actual Results:

PLAY [Test] ********************************************************************

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

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] => {
"bar": "test_bar1"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] => {
"ert": "test_ert1"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] => {
"bar": "test_bar2"
}

TASK [roter : debug] ***********************************************************
ok: [127.0.0.1] => {
"ert": "test_ert1"
}

PLAY RECAP *********************************************************************
127.0.0.1 : ok=5 changed=0 unreachable=0 failed=0