epiphany
epiphany copied to clipboard
[FEATURE REQUEST] Create build location variable for ansible roles
Is your feature request related to a problem? Please describe. We would like to have seperated variable in ansible which should indicate to cluster's build directory in order to store there some files such as kubeconfig etc.. Right now, we have to use location_vault variable what is not so good in some cases.
Describe the solution you'd like We would like to have build_location variable in ansible vars: build/cluster_name/ansible/group_vars/all.yml:
....
key_path: /home/vscode/.ssh/id_rsa
**build_location: /....**
validate_certs: true
offline_requirements: ''
wait_for_pods: false
is_upgrade_run: false
roles_with_generated_vars:
Describe alternatives you've considered None
Additional context None
DoD checklist
- Changelog
- [ ] updated
- [ ] not needed
- COMPONENTS.md
- [ ] updated
- [ ] not needed
- Schema
- [ ] updated
- [ ] not needed
- Backport tasks
- [ ] created
- [ ] not needed
- Documentation
- [ ] added
- [ ] updated
- [ ] not needed
- [ ] Feature has automated tests
- [ ] Automated tests passed (QA pipelines)
- [ ] apply
- [ ] upgrade
- [ ] backup/restore
- [ ] Idempotency tested
- [ ] All conversations in PR resolved
- [ ] Solution meets requirements and is done according to design doc
- [ ] Usage compliant with license
variable inventory_dir is enough ;)
We have a case where inventory_dir
fact cannot be used. In PR #1683.
Documentation (https://docs.ansible.com/ansible/latest/inventory/implicit_localhost.html) states:
The
inventory_file
andinventory_dir
magic variables are not available for the implicit localhost as they are dependent on each inventory host.