Use requirements.yml in a lookup?

Hello!

I would like to take my requirements.yml and make a config for https://github.com/beefsack/git-mirror

Any idea for how to accomplish this? I thought about using a lookup somehow, but with requirements.yml already being YAML maybe there is a better way?

Basically I’d like to take each “src: https://github…/role-1” in requirements.yml and turn into a file that looks like:

ListenAddr = ":8080"
BasePath = "/var/mirror"
Interval = "15m"

[repo]
Origin = "https://github../role-1"

[repo]
Origin = "https://github../role-2"

// Johan

​vars_files or include_vars will read a yaml file into a data structure you can then use in template module​