
In case image is prepared with python-stow-versions element, it make sense to use stow to just enable required python version instead of building it for each job run. Change-Id: Ie04a2bb59d351c1e5c79b2da79f7a094c44cdf86
14 lines
372 B
YAML
14 lines
372 B
YAML
- name: Get stow environments
|
|
find:
|
|
paths: "{{ python_stow_dir }}"
|
|
recurse: no
|
|
file_type: directory
|
|
register: stow_envs
|
|
|
|
- name: Activate stow
|
|
command: "stow -d {{ python_stow_dir }} -S {{ zj_stow_env | basename }}"
|
|
loop: "{{ stow_envs.files | map(attribute='path') | unique }}"
|
|
loop_control:
|
|
loop_var: zj_stow_env
|
|
when: python_version in item
|