mirror of https://github.com/ansible/ansible.git
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 fragmentpull/42630/head
parent
e1c2dd383a
commit
d5e4f37ca0
@ -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