Hallo everyone.
I have the next problem.
I have two roles: database and service1 for example.
database role has defaults/main.yml with default variables.
I want service1 role has a dependency on the database role and I want to pass specific vars to database role to override it’s default variables.
so service1 meta/main.yml file will look something like:
dependencies:
- { role: database, file_with_vars_to_include: database.yml }
or in playbook file
roles:
- { role: database, file_with_vars_to_include: roles/service1/vars/database.yml }
I’ve tried ‘include’ and ‘vars_files’ but It seems not to work.
Kind regards,
Oleksii.