biiiiig update !

This commit is contained in:
Ludovic Cartier
2026-02-20 15:46:38 +01:00
parent ecda4ecafd
commit 717c98fa6c
12 changed files with 221 additions and 25 deletions
+43 -1
View File
@@ -1,5 +1,5 @@
---
- name: pip3 | install package
- name: python | install package (legacy)
pip:
name:
- ps_mem
@@ -7,3 +7,45 @@
executable: pip3
when:
- ansible_distribution == 'Debian'
- ansible_distribution_major_version | int < 12
- name: python | install python3-venv
apt:
name: python3-venv
state: present
when:
- ansible_distribution == 'Debian'
- ansible_distribution_major_version | int >= 12
- name: python | create venv directory
file:
path: /opt/python/venv
state: directory
mode: '0755'
when:
- ansible_distribution == 'Debian'
- ansible_distribution_major_version | int >= 12
- name: python | install packages in venv
pip:
name:
- ps_mem
- bpytop
virtualenv: /opt/python/venv/brainsys
virtualenv_command: /usr/bin/python3 -m venv
when:
- ansible_distribution == 'Debian'
- ansible_distribution_major_version | int >= 12
- name: python | link binaries
file:
src: "/opt/python/venv/brainsys/bin/{{ item }}"
dest: "/usr/local/bin/{{ item }}"
state: link
loop:
- ps_mem
- bpytop
when:
- ansible_distribution == 'Debian'
- ansible_distribution_major_version | int >= 12