--- # This role is used internally to parse template variables, depending on # what is supplied. # - name: Set default template path. ansible.builtin.set_fact: repo_template_path: "{{ build_dir }}/template" - name: Parse template path. ansible.builtin.set_fact: template_dir: "{{ template.path | default(repo_template_path) }}" - name: Parse template vars path. ansible.builtin.set_fact: template_vars_path: "{{ template_dir }}/{{ template.vars | default('repo_vars') }}"