Skip to content

Commit

Permalink
Install netaddr inside the venv (#2254)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Jun 15, 2024
1 parent 02022ea commit 1d0ee92
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ansible/manager-part-0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,10 @@
- "linux-generic-hwe-{{ ansible_distribution_version }}"
when: ansible_distribution == "Ubuntu"

- name: Install packages
- name: Install python3-venv package
become: true
ansible.builtin.apt:
name:
- python3-netaddr
- python3-venv
name: python3-venv

- name: Create venv directory
become: true
Expand All @@ -71,6 +69,14 @@
state: directory
mode: 0755

- name: Install netaddr in venv
ansible.builtin.pip:
umask: "0022"
name: netaddr
state: present
virtualenv: "{{ venv_path }}"
virtualenv_command: python3 -m venv

- name: Install ansible-core in venv
ansible.builtin.pip:
umask: "0022"
Expand Down

0 comments on commit 1d0ee92

Please sign in to comment.