-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall_python3.yml
42 lines (40 loc) · 1.47 KB
/
install_python3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
- hosts: target
tasks:
- name: Install EPEL release
yum:
name: epel-release
state: latest
become: yes
become_method: sudo
- name: Install Python3.6 from EPEL
yum:
name:
- python36
- python36-devel
- python-devel
- python36-setuptools
- python3-pip
- python-setuptools
- python36-cffi
- libyaml
- libyaml-devel
state: latest
when: ansible_os_family == "RedHat" and ansible_distribution_major_version|int < 8
become: yes
become_method: sudo
- name: Install Python3.6 from EPEL
yum:
name:
- python3
- python3-devel
- python3-setuptools
- python3-pip
- python3-cffi
- libyaml
- libyaml-devel
state: present
enablerepo: "PowerTools"
when: ansible_os_family == "RedHat" and ansible_distribution_major_version|int == 8
become: yes
become_method: sudo