Install Python2 by request/variable

This commit is contained in:
Sven Velt 2024-03-12 21:44:35 +01:00
parent adefc850bb
commit 4d95c09591

View file

@ -44,6 +44,12 @@
voidlinux:
- "xbps-install -Suy python3 libgcc"
cmdline_python2:
debian: &cmdline_python2_debian
- "apt-get -y update"
- "apt-get install -y python python-apt"
ubuntu: *cmdline_python2_debian
cmdline_fixes:
oracle:
8:
@ -109,9 +115,16 @@
when: lxc_created is changed
- name: Raw-Install Python
- name: Raw-Install Python3
raw: "{{ item }}"
loop: "{{ cmdline_python[os_d] }}"
when: use_python2 != True
- name: Raw-Install Python2
raw: "{{ item }}"
loop: "{{ cmdline_python2[os_d] }}"
when: use_python2 == True
- name: OS-dependent fixes