Importing a yaml file in ansible-playbook

I am running ansilbe-playbooks using the ansible-runner in python.

I have a configuration yaml file. I want my playbooks to import that configuration file in order to use the variables from that file.

I am using jinja2 templating to use the variables for that ayaml files.

Is there any way I can do this?