I have a lot of lookups in my Ansible playbook. This works like a charm on a shell script form my local computer but inside a bitbucket pipeline I have not the rights to access aws secret manager so the idea was to put all lookups in a local script and set it via curl command in the bitbucket pipeline as new variables. So bitbucket pipelines use only secret variables to run with Ansible. If there are changes in the variables I can set it from outside without click through the error-prone process to set the variables new. We talk about over 50 variables which will change regulary.
Is there a simple way with curl to set such pipeline variables?