I have a role that contains this task:
- name: Download something via Git
include_role:
name: git_cached
vars:
params:
repo: https://somerepo
dest: /some/path
I would really like to then have the git_cached role look like this:
- git: {{ params }}
I don't want to have to duplicate all of the parameters like this:
- git:
repo: "{{ repo }}"
dest: "{{ dest }}"
Because then, I have to do it for all the parameters, even the ones I don't typically use. I just want to basically "override" certain parameters that I pass into the include_role task.
Is what I'm trying to do possible?