This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Description
We have a policy to use local mirrors for all external packages. That means, to use clickhouse in production I need to create a local mirror and to change the ansible-clickhouse role to use that mirror.
When I've tried to use custom clickhouse_repo variable I found that ansible-clickhouse uses 'include_vars' which overrides variables from the calling playbook. Moreover, I found that all three files to include (vars/Ubuntu_trusty.yml, Ubuntu_precise.yml and Ubuntu_xenial.yml) are identical (except for a single empty line).
To achieve my goal (use of custom repositories) I'd like to do four things:
- Move all variables from Ubuntu* files into defaults.
- Remove include_var statement
- Add variable
clickhouse_repo_key_data (not defined by default).
- In case of
clickhouse_repo_key_data make role to use it instead of clickhouse_repo_keyserver and clickhouse_repo_key to add that key into apt_key (with data option).
Is it ok?