Skip to content

Commit

Permalink
Modifying conditions for additional packages requirements on RHEL7 Ma…
Browse files Browse the repository at this point in the history
…rketplace, RHEL7 and OEL7 dev/oratk-26 (#18)

* Small formatting udpates

* Revert "Small formatting udpates"

This reverts commit 20c1983d049df0930190c87f380f9af7cbfe19af.

* Add Gabriel's changes to dev/ branch

* Revert "Add Gabriel's changes to dev/ branch"

This reverts commit 9888dfe745017424b4c0218190d8940d9d3a0615.

* Modifying conditions for additional packages reuirements on RHEL7 Marketplace, RHEL7 and OEL7 (#16)

* Small formatting changes, only to blocks updated by Gabriel

---------

Co-authored-by: Simon Pane <pane@pythian.com>
  • Loading branch information
gmarcospythian and simonpane authored Jan 24, 2025
1 parent 21db037 commit 39102f9
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions roles/ora-host/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@
lock_timeout: 180
enablerepo: rhui-rhel-7-server-rhui-optional-rpms
when:
- install_os_packages|bool and ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
- redhat_repo.stat.exists|bool and rh_cloud_repo.stat.exists|bool
- 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
Expand All @@ -81,8 +84,10 @@
enablerepo: rhel-7-server-optional-rpms
when:
- rh_cloud_repo is not defined
- install_os_packages|bool and ansible_distribution == 'RedHat' and ansible_distribution_major_version == '7'
- redhat_repo.stat.exists|bool
- 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 @@ -99,8 +104,10 @@
lock_timeout: 180
enablerepo: ol7_optional_latest
when:
- install_os_packages|bool and ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '7'
- oraclelinux_repo.stat.exists|bool
- install_os_packages | bool
- ansible_distribution == 'OracleLinux'
- ansible_distribution_major_version == '7'
- oraclelinux_repo.stat.exists | bool
tags: os-packages

- name: Stat OL8 repo
Expand Down

0 comments on commit 39102f9

Please sign in to comment.