SUSE / rookcheck

Apache License 2.0
4 stars 11 forks source link

Allow passing extra-vars to ansible #172

Closed brunoleon closed 4 years ago

brunoleon commented 4 years ago

In order to pass custom repo (but that could be anything), you used to have to update yaml repo definition. This PR allows you to easily pass vars to ansible by setting an env variable ROOKCHECK_ANSIBLE_EXTRA_VARS:

export ROOKCHECK_ANSIBLE_EXTRA_VARS='{"repo":{"storage_latest": "http://download.suse.de/ibs/SUSE:/SLE-15-SP2:/Update:/Products:/SES7/images/repo/SUSE-Enterprise-Storage-7-POOL-x86_64-Media1/"}}'

repo var was renamed to _repo within ansible playbook to avoid conflicts during lookup