I am currently using lookup()
function in role tasks.yml to get input from files for shell commands.
Is there a way to make lookups relative to the playbook file (project root folder) instead of role itself? I'd rather store files on playbook level.
lookup()
starts looking up from the playbook directory by default.
If you are using it differently try using {{ playbook_dir }}\path\to\your\file
.
Its one of the default ansible variables
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With