fgci-org / fgci-ansible

:microscope: Collection of the Finnish Grid and Cloud Infrastructure Ansible playbooks
MIT License
54 stars 18 forks source link

Update cuda role - disable bash script & vars_files? #166

Closed martbhell closed 7 years ago

martbhell commented 7 years ago

Two things:

A) Disable the cuda.sh bash profile script?

Before we update the cuda role we could set

cuda_bash_profile: False

Results: the cuda role doesn't template in /etc/profile.d/cuda.sh

Any thoughts on this? We have a CUDA module where there might be a conflict.

B) Sites would need to update their group_vars.

Just updating pull_variables.yml is not enough as then the variable is different for compute.yml vs local.yml Pointing to the pull_variables.yml is also problematic as we'd need to fetch that templated file from the compute nodes to where ansible push is run from.

Perhaps one could start using a vars_files pointing to a file we are using to override role's variables in.

martbhell commented 7 years ago

Modules should prepend the path.

Bumped cuda role version in https://github.com/CSC-IT-Center-for-Science/fgci-ansible/commit/9ff55bf18e334f28379e0e5eaf3075c1d0f4e6d4