mirror of https://github.com/ansible/ansible.git
Restrict role loading .. to role ... (#77683)
* Ansible will now error out if you try to use the `*_from` to load files from outside the role being loaded by `{import,include}_role`pull/75097/merge
parent
290fb5e0ca
commit
5e50284693
@ -0,0 +1,2 @@
|
|||||||
|
bugfixes:
|
||||||
|
- roles, fixed issue with roles loading paths not contained in the role itself when using the `_from` options.
|
@ -0,0 +1,7 @@
|
|||||||
|
- hosts: testhost
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: role attempts to load file from outside itself
|
||||||
|
include_role:
|
||||||
|
name: a
|
||||||
|
tasks_from: "{{ playbook_dir }}/tasks/dummy.yml"
|
@ -0,0 +1 @@
|
|||||||
|
- debug: msg='this should not run'
|
Loading…
Reference in New Issue