mirror of https://github.com/ansible/ansible.git
[stable-2.9] Allow a collection role to call a standalone role by default (#69102)
* Allow a collection role to call a standalone role by default. Fixes #69101
* tweaked changelog text
* Guard against NoneType
Co-authored-by: Matt Davis <nitzmahone@users.noreply.github.com>.
(cherry picked from commit da98fc267a)
Co-authored-by: Matt Martz <matt@sivel.net>
pull/69271/head
parent
f8a5377cc6
commit
e2f7676c5a
@ -0,0 +1,5 @@
|
||||
bugfixes:
|
||||
- Collections - Allow a collection role to call a stand alone role, without
|
||||
needing to explicitly add ``ansible.legacy`` to the collection search
|
||||
order within the collection role.
|
||||
(https://github.com/ansible/ansible/issues/69101)
|
||||
@ -0,0 +1,6 @@
|
||||
- include_role:
|
||||
name: standalone
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- standalone_role_var is defined
|
||||
@ -0,0 +1,2 @@
|
||||
- set_fact:
|
||||
standalone_role_var: True
|
||||
Loading…
Reference in New Issue