You've already forked base
update python package management
This commit is contained in:
@@ -18,9 +18,6 @@
|
|||||||
- locales
|
- locales
|
||||||
- net-tools
|
- net-tools
|
||||||
- ncdu
|
- ncdu
|
||||||
- python3-pip
|
|
||||||
- python3-venv
|
|
||||||
- python3-xyz
|
|
||||||
- rsync
|
- rsync
|
||||||
- rsyslog
|
- rsyslog
|
||||||
- screen
|
- screen
|
||||||
|
|||||||
+10
-8
@@ -1,4 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
- name: python | install python3 packages
|
||||||
|
apt:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
with_items:
|
||||||
|
- python3-venv
|
||||||
|
- python3-pip
|
||||||
|
when:
|
||||||
|
- ansible_distribution == 'Debian'
|
||||||
|
|
||||||
- name: python | install package (legacy)
|
- name: python | install package (legacy)
|
||||||
pip:
|
pip:
|
||||||
name:
|
name:
|
||||||
@@ -9,14 +19,6 @@
|
|||||||
- ansible_distribution == 'Debian'
|
- ansible_distribution == 'Debian'
|
||||||
- ansible_distribution_major_version | int < 12
|
- 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
|
- name: python | create venv directory
|
||||||
file:
|
file:
|
||||||
path: /opt/python/venv
|
path: /opt/python/venv
|
||||||
|
|||||||
Reference in New Issue
Block a user