26 lines
475 B
YAML
26 lines
475 B
YAML
---
|
|
- name: add apt repository
|
|
shell: add-apt-repository ppa:deadsnakes/ppa -y
|
|
|
|
- name: apt update
|
|
apt:
|
|
name: "*"
|
|
state: latest
|
|
|
|
- name: install python 3.9
|
|
apt:
|
|
name: python3.9
|
|
state: present
|
|
|
|
- name: install pip3
|
|
apt:
|
|
name: python3-pip
|
|
state: present
|
|
|
|
- name: setting default 3.9 version
|
|
shell: |
|
|
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
|
|
update-alternatives --set python3 /usr/bin/python3.9
|
|
|
|
|