Skip to content

fix(ansible): load the shared vars for every inventory - #87

Open
catinspace-au wants to merge 1 commit into
mainfrom
fix/shared-vars-inventory
Open

fix(ansible): load the shared vars for every inventory#87
catinspace-au wants to merge 1 commit into
mainfrom
fix/shared-vars-inventory

Conversation

@catinspace-au

Copy link
Copy Markdown
Contributor

hyperi_github_token, hyperi_github_headers, hyperi_github_env and
hyperi_core_versions lived in inventories/localhost/group_vars, so
playbooks/main.yml only worked with that one inventory. Against any
other, a test VM or a fleet host, the first task to reference them
failed undefined - the Rust role's build-environment step, on a clean
VM, after thirty tasks had run. The variables belong to the playbook,
not to one inventory: they are read from the control node's
environment and name the versions the roles install. Moved to
playbooks/group_vars, which Ansible loads beside the playbook for
whatever inventory is passed. The localhost install path is unchanged.

hyperi_github_token, hyperi_github_headers, hyperi_github_env and
hyperi_core_versions lived in inventories/localhost/group_vars, so
playbooks/main.yml only worked with that one inventory. Against any
other, a test VM or a fleet host, the first task to reference them
failed undefined - the Rust role's build-environment step, on a clean
VM, after thirty tasks had run. The variables belong to the playbook,
not to one inventory: they are read from the control node's
environment and name the versions the roles install. Moved to
playbooks/group_vars, which Ansible loads beside the playbook for
whatever inventory is passed. The localhost install path is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant