terraform script add
This commit is contained in:
25
packer/ansible/roles/security-settings/tasks/python.yml
Normal file
25
packer/ansible/roles/security-settings/tasks/python.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
- 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user