This would be much better if insights_repo was a list of dictionaries, this way you can just do a with_items: over it and reference the code_dir as `{{ item.code_dir }}`