Skip to content

Commit

Permalink
Merge pull request #180 from pythian/rel/oratk-26
Browse files Browse the repository at this point in the history
Modifying conditions for additional packages requirements on RHEL7 Marketplace, RHEL7 and OEL7
  • Loading branch information
mfielding authored Jan 30, 2025
2 parents ec0cbd9 + 39102f9 commit 43845b3
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions roles/ora-host/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,32 @@
path: /etc/yum.repos.d/rh-cloud.repo
register: rh_cloud_repo

- name: Install Oracle required packages (base/non-rhui config) for Marketplace RHEL7
yum:
name: "{{ oracle_required_rpms }}"
state: present
lock_timeout: 180
enablerepo: rhui-rhel-7-server-rhui-optional-rpms
when:
- install_os_packages | bool
- ansible_distribution == 'RedHat'
- ansible_distribution_major_version == '7'
- redhat_repo.stat.exists | bool
- rh_cloud_repo.stat.exists | bool
tags: os-packages

- name: Install Oracle required packages (base/non-rhui config) for RHEL7
yum:
name: "{{ oracle_required_rpms }}"
state: present
lock_timeout: 180
enablerepo: rhel-7-server-optional-rpms
when:
- install_os_packages|bool and ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
- redhat_repo.stat.exists|bool or rh_cloud_repo.stat.exists|bool
- rh_cloud_repo is not defined
- install_os_packages | bool
- ansible_distribution == 'RedHat'
- ansible_distribution_major_version == '7'
- redhat_repo.stat.exists | bool
tags: os-packages

- name: Stat OL7 repo
Expand All @@ -80,6 +97,19 @@
when:
- install_os_packages|bool and ansible_distribution == 'OracleLinux'

- name: Install Oracle required packages (base/non-rhui config) for OEL7
yum:
name: "{{ oracle_required_rpms }}"
state: present
lock_timeout: 180
enablerepo: ol7_optional_latest
when:
- install_os_packages | bool
- ansible_distribution == 'OracleLinux'
- ansible_distribution_major_version == '7'
- oraclelinux_repo.stat.exists | bool
tags: os-packages

- name: Stat OL8 repo
stat:
path: /etc/yum.repos.d/oracle-linux-ol8.repo
Expand Down

0 comments on commit 43845b3

Please sign in to comment.