epiphany icon indicating copy to clipboard operation
epiphany copied to clipboard

[FEATURE REQUEST] Create build location variable for ansible roles

Open rpudlowski93 opened this issue 4 years ago • 2 comments

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

rpudlowski93 avatar Sep 11 '20 15:09 rpudlowski93

variable inventory_dir is enough ;)

rpudlowski93 avatar Sep 14 '20 11:09 rpudlowski93

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 and inventory_dir magic variables are not available for the implicit localhost as they are dependent on each inventory host.

to-bar avatar Sep 23 '20 09:09 to-bar