Open gabor-udvari opened 7 years ago
The lookup module does not support includes - this is not an Ansible mechanism, but a custom DebOps lookup plugin. You need to put your tasks in the nginx/pre_main.yml
file directly. Or, create a custom playbook that includes the debops.nginx
role and its dependencies, and your own custom role.
I have a set of existing tasks which I would like to run during the DebOps playbooks with pre/post hooks. When I include my own tasks into the pre/post hook tasks, then the steps inside the included task will not be processed:
example nginx/pre_main.yml:
The debug message (and any other steps) are correctly executed, but the include is ignored. If I simply make the
nginx/pre_main.yml
a symbolic link to thenginx/task/custom.yml
then everything is working as expected. But I can only reference a single file that way.I tried the include with every possible relative path and absolute path, not finding the file is not the issue.