molecule
molecule copied to clipboard
Allowing mixing links and inventory variables
We can use links to specify some default values for group_vars and host_vars. This PR gives user ability to override default values within molecule.yml file. This align with Ansible variable precedence convention.
Inspired by https://github.com/ansible/molecule/pull/3501 and fixes https://github.com/ansible/molecule/issues/2759
A few people need this feature including myself but original ticket was closed because issue opener found another solution. I am trying to pickup the work.
What's the status of this?
Will this result in the following variable precedence? (Ordered from least to greatest)
provisioner['inventory']['links']['group_vars']['all']provisioner['inventory']['links']['group_vars']['groupname']provisioner['inventory']['group_vars']['all']provisioner['inventory']['group_vars']['groupname']provisioner['inventory']['links']['host_vars']['ansible_host']provisioner['inventory']['host_vars']['ansible_host']- ...followed by normal ansible role/playbook precedence