mirror of https://github.com/ansible/ansible.git
* Revert " Update TaskInclude _raw_params with the expanded/templated path to file (#39365)" This reverts commitpull/41306/head4b01b92cfe. * Improve error messaging, catch error templating parent path (cherry picked from commitc403f01971)
parent
4a1eb1c191
commit
094c9e7a3d
@ -1,2 +0,0 @@
|
||||
- debug:
|
||||
msg: one
|
||||
@ -1,14 +0,0 @@
|
||||
- hosts: testhost:testhost2
|
||||
tasks:
|
||||
- set_fact:
|
||||
include_me: one
|
||||
when: inventory_hostname == ansible_play_hosts[0]
|
||||
|
||||
- set_fact:
|
||||
include_me: two
|
||||
when: inventory_hostname == ansible_play_hosts[1]
|
||||
|
||||
- debug:
|
||||
var: include_me
|
||||
|
||||
- include_tasks: '{{ include_me }}/include_me.yml'
|
||||
@ -1,2 +0,0 @@
|
||||
- debug:
|
||||
msg: two
|
||||
Loading…
Reference in New Issue