Skip to content

Commit 74212e0

Browse files
committed
fix: install __hpc_base_packages early via dedicated task
Add a new top-level "Install base packages" task to ensure the role’s baseline packages (defined in __hpc_base_packages) are installed consistently and independently of optional feature blocks such as Moneo. The task is placed immediately after repository configuration so required repos are available before package installation, and it uses the same OSTree-safe package backend selection pattern used elsewhere in the role. this change only introduces a common baseline package installation step. Signed-off-by: Gaurav Goklani <ggoklani@redhat.com>
1 parent 3c691ff commit 74212e0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tasks/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@
7171
- "{{ __hpc_nvidia_cuda_repo }}"
7272
- "{{ __hpc_microsoft_prod_repo }}"
7373

74+
- name: Install base packages
75+
package:
76+
name: "{{ __hpc_base_packages }}"
77+
state: present
78+
use: "{{ (__hpc_server_is_ostree | d(false)) |
79+
ternary('ansible.posix.rhel_rpm_ostree', omit) }}"
80+
register: __hpc_base_packages_install
81+
until: __hpc_base_packages_install is success
82+
7483
- name: Replace default RHUI Azure repository with the EUS repository
7584
when: hpc_enable_eus_repo
7685
block:

vars/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ __hpc_required_facts_subsets: "{{ ['!all', '!min'] +
1818

1919
__hpc_microsoft_prod_rpm_key: https://packages.microsoft.com/keys/microsoft.asc
2020

21+
__hpc_base_packages:
22+
- pssh
23+
2124
__hpc_rdma_rename_path: /usr/lib/udev/rdma_rename
2225

2326
__hpc_dkms_packages:

0 commit comments

Comments
 (0)