mirror of https://github.com/ansible/ansible.git
[stable-2.7] Ensure we don't overwrite roles from include/import_role when loading the play (#47512)
* Ensure we don't overwrite roles from include/import_role when loading the play. Fixes #47454
* Add changelog fragment
(cherry picked from commit d5e4f37
)
Co-authored-by: Matt Martz <matt@sivel.net>
pull/47530/head
parent
18f07e828e
commit
376b199c05
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- roles - Ensure that we don't overwrite roles that have been registered (from imports) while parsing roles under the roles header (https://github.com/ansible/ansible/issues/47454)
|
@ -0,0 +1,4 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
roles:
|
||||
- call_import
|
@ -0,0 +1,6 @@
|
||||
- import_role:
|
||||
name: regular
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- regular_defaults_var is defined
|
Loading…
Reference in New Issue