I’m getting unexpected results from group_by when running two playbooks together. I have two groups with a host each. When I run playbook1 and playbook2 separately, playbook1 is run against host1 and playbook2 is run against host2 as expected. When I include playbook1 and playbook2 in a single playbook, both playbook1 and playbook2 are run against host1. I’d appreciate any suggestions. Running ansible 1.9.4.
hosts
`
[group1]
host1
[group2]
host2
`
Playbook1
`
-
hosts: group1
tasks: -
group_by: key={{ ansible_distribution_release }}
changed_when: False -
hosts: precise:trusty
gather_facts: False
roles:
- myrole
`
Playbook2
`
-
hosts: group2
tasks: -
group_by: key={{ ansible_distribution_release }}
changed_when: False -
hosts: precise:trusty
gather_facts: False
roles:
- myrole
`