Skip to content

Commit ee9cf96

Browse files
committed
update single node for ol9 through db install
1 parent 0670499 commit ee9cf96

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

olam/deploy_olam_single.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
delay: 10
2121
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
2222

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+
2331
- name: Install version lock plugin
2432
ansible.builtin.dnf:
2533
name: python3-dnf-plugin-versionlock
@@ -29,6 +37,15 @@
2937
delay: 10
3038
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
3139

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+
3249
- name: Version lock python3-click
3350
community.general.yum_versionlock:
3451
state: present
@@ -45,24 +62,35 @@
4562
retries: 5
4663
delay: 10
4764
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'
4877

4978
- name: Install pexpect using pip
5079
ansible.builtin.pip:
5180
name: pexpect
5281

5382
# Install database
5483

55-
- name: Enable the PostgreSQL 13 module stream
84+
- name: Enable the PostgreSQL 16 module stream
5685
ansible.builtin.copy:
5786
dest: /etc/dnf/modules.d/postgresql.module
5887
content: |
5988
[postgresql]
6089
name=postgresql
61-
stream=13
90+
stream=16
6291
profiles=
6392
state=enabled
6493
mode: '0644'
65-
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
6694

6795
- name: Install the database
6896
ansible.builtin.dnf:

0 commit comments

Comments
 (0)