mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
* Revert " Update TaskInclude _raw_params with the expanded/templated path to file (#39365)"
This reverts commit 4b01b92cfe
.
* Improve error messaging, catch error templating parent path
This commit is contained in:
parent
24c0f6f872
commit
c403f01971
6 changed files with 16 additions and 28 deletions
|
@ -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
|
|
@ -64,10 +64,6 @@ ANSIBLE_STRATEGY='linear' ansible-playbook test_grandparent_inheritance.yml -i .
|
|||
ANSIBLE_STRATEGY='linear' ansible-playbook undefined_var/playbook.yml -i ../../inventory "$@"
|
||||
ANSIBLE_STRATEGY='free' ansible-playbook undefined_var/playbook.yml -i ../../inventory "$@"
|
||||
|
||||
# Include path inheritance using host var for include file path
|
||||
ANSIBLE_STRATEGY='linear' ansible-playbook include_path_inheritance/playbook.yml -i ../../inventory "$@"
|
||||
ANSIBLE_STRATEGY='free' ansible-playbook include_path_inheritance/playbook.yml -i ../../inventory "$@"
|
||||
|
||||
# include_ + apply (explicit inheritance)
|
||||
ANSIBLE_STRATEGY='linear' ansible-playbook apply/include_apply.yml -i ../../inventory "$@" --tags foo
|
||||
set +e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue