Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion roles/docker/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,16 @@
when: inventory_hostname in groups['gnbsim_nodes']
become: true

- name: install docker module for Python
- name: Create a virtual environment for Python
ansible.builtin.command:
cmd: python3 -m venv /opt/dockerenv
when: inventory_hostname in groups['gnbsim_nodes']
become: true

- name: Install docker module for Python in virtual environment
pip:
name: docker
virtualenv: /opt/dockerenv
when: inventory_hostname in groups['gnbsim_nodes']
become: true

Expand Down