Skip to content

Commit 8fec1ef

Browse files
committed
add condition to python3-check for ol8-only
1 parent 7e50e4b commit 8fec1ef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

olam/deploy_olam_single.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
community.general.yum_versionlock:
5151
state: present
5252
name: python3-click
53+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
5354

5455
- name: Install additional packages for ansible
5556
ansible.builtin.dnf:
@@ -219,6 +220,15 @@
219220
delay: 10
220221
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
221222

223+
- name: Enable Oracle Linux Automation Manager 2.3 repository
224+
community.general.ini_file:
225+
path: "/etc/yum.repos.d/oraclelinux-automation-manager-ol9.repo"
226+
section: ol9_automation2.3
227+
option: enabled
228+
value: "1"
229+
mode: '0644'
230+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '9'
231+
222232
- name: Install Oracle Linux Automation Manager
223233
ansible.builtin.dnf:
224234
name: ol-automation-manager

0 commit comments

Comments
 (0)