File tree Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Expand file tree Collapse file tree 1 file changed +31
-3
lines changed Original file line number Diff line number Diff line change 20
20
delay : 10
21
21
when : ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
22
22
23
+ - name : Install Oracle EPEL repository
24
+ ansible.builtin.dnf :
25
+ name : oracle-epel-release-el9
26
+ state : present
27
+ retries : 5
28
+ delay : 10
29
+ when : ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
30
+
23
31
- name : Install version lock plugin
24
32
ansible.builtin.dnf :
25
33
name : python3-dnf-plugin-versionlock
29
37
delay : 10
30
38
when : ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
31
39
40
+ - name : Install version lock plugin
41
+ ansible.builtin.dnf :
42
+ name : python3-dnf-plugin-versionlock
43
+ enablerepo : ol9_developer_EPEL
44
+ state : present
45
+ retries : 5
46
+ delay : 10
47
+ when : ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
48
+
32
49
- name : Version lock python3-click
33
50
community.general.yum_versionlock :
34
51
state : present
45
62
retries : 5
46
63
delay : 10
47
64
when : ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
65
+
66
+ - name : Install additional packages for ansible
67
+ ansible.builtin.dnf :
68
+ name :
69
+ - python3-psycopg2
70
+ - python3-pyOpenSSL
71
+ - python3-pip
72
+ enablerepo : ol9_developer_EPEL
73
+ state : present
74
+ retries : 5
75
+ delay : 10
76
+ when : ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
48
77
49
78
- name : Install pexpect using pip
50
79
ansible.builtin.pip :
51
80
name : pexpect
52
81
53
82
# Install database
54
83
55
- - name : Enable the PostgreSQL 13 module stream
84
+ - name : Enable the PostgreSQL 16 module stream
56
85
ansible.builtin.copy :
57
86
dest : /etc/dnf/modules.d/postgresql.module
58
87
content : |
59
88
[postgresql]
60
89
name=postgresql
61
- stream=13
90
+ stream=16
62
91
profiles=
63
92
state=enabled
64
93
mode : ' 0644'
65
- when : ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
66
94
67
95
- name : Install the database
68
96
ansible.builtin.dnf :
You can’t perform that action at this time.
0 commit comments