blob: 9e5d58312ecfae19e53d96c19124a33dc2329253 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
---
- name: Create virtualenv scripts from templates
ansible.builtin.template:
src: "{{ item.name }}"
dest: "{{ build_dir }}/scripts/{{ item.target }}"
mode: "755"
force: true
loop:
- { name: 'init_venv.sh.j2', target: 'init_venv.sh' }
- { name: 'install_venv.sh.j2', target: 'install_venv.sh' }
- name: Create python-{{ py_ver }} venv
community.docker.docker_container_exec:
container: "tfio-multipython"
command: /bin/bash -c /tmp/workspace/scripts/init_venv.sh
- name: Populate python-{{ py_ver }} venv
community.docker.docker_container_exec:
container: "tfio-multipython"
command: /bin/bash -c /tmp/workspace/scripts/install_venv.sh
|