Skip to content

Commit

Permalink
packer-rocm/amdgpu_install: make 'when' for 'amdgpu-repo' more defensive
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlay2amd committed Oct 26, 2024
1 parent c67030d commit 0a43179
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packer-rocm/playbooks/roles/amdgpu_install/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@
- name: Gather package facts
ansible.builtin.package_facts:

- name: "Internal : 'amdgpu-repo' (when 'internal' and builds provided)"
- name: "Internal : 'amdgpu-repo' (when 'internal' and build(s) provided)"
become: true
changed_when: true # satisfy linting, assume changed when run
ansible.builtin.shell: >
amdgpu-repo
{% if amdgpu_install_rocm_branch is defined %}--rocm-build={{ amdgpu_install_rocm_branch }}{% endif %}
{% if amdgpu_install_branch is defined %}--amdgpu-build={{ amdgpu_install_branch }}{% endif %}
when:
- (amdgpu_install_rocm_branch is defined) or (amdgpu_install_rocm_branch is defined)
- '"amdgpu-install-internal" in ansible_facts.packages' # generally does not apply to GA releases, internal only

- name: "Install 'extra' packages"
Expand Down

0 comments on commit 0a43179

Please sign in to comment.