mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 22:31:25 -07:00
This commit is contained in:
parent
c07ba82d3e
commit
cd2f66f731
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/no-dynamic-import-tasks.yaml
Normal file
2
changelogs/fragments/no-dynamic-import-tasks.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- import_tasks - Do not allow import_tasks to transition to dynamic if the file is missing (https://github.com/ansible/ansible/issues/44822)
|
|
@ -250,7 +250,7 @@ def load_list_of_tasks(ds, play, block=None, role=None, task_include=None, use_h
|
||||||
# nested includes, and we want the include order printed correctly
|
# nested includes, and we want the include order printed correctly
|
||||||
display.vv("statically imported: %s" % include_file)
|
display.vv("statically imported: %s" % include_file)
|
||||||
except AnsibleFileNotFound:
|
except AnsibleFileNotFound:
|
||||||
if t.static or \
|
if action != 'include' or t.static or \
|
||||||
C.DEFAULT_TASK_INCLUDES_STATIC or \
|
C.DEFAULT_TASK_INCLUDES_STATIC or \
|
||||||
C.DEFAULT_HANDLER_INCLUDES_STATIC and use_handlers:
|
C.DEFAULT_HANDLER_INCLUDES_STATIC and use_handlers:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue