Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Roolback on xilinx_xrt_ensure_compatible_kernel condition and add 'En…
Browse files Browse the repository at this point in the history
…sure CentOS Vault repositories are up to date' step
  • Loading branch information
xlz-jbleclere committed Mar 9, 2022
1 parent eeaf17d commit 96d87b4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tasks/kernel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
---
- name: Ensure CentOS Vault repositories are up to date
package:
name: centos-release
state: latest # noqa package-latest
retries: 10
delay: 1
register: _centos_release
until: _centos_release is successful
when: ansible_distribution == 'CentOS'

- name: Ensure Kernel headers are installed
package:
Expand All @@ -15,7 +24,6 @@
when:
- ansible_os_family == 'RedHat'
- not (xilinx_xrt_container | bool)
- xilinx_xrt_ensure_compatible_kernel | bool

- block:
- name: Ensure Kernel headers are installed
Expand Down Expand Up @@ -59,4 +67,3 @@
when:
- ansible_os_family == 'Debian'
- not (xilinx_xrt_container | bool)
- xilinx_xrt_ensure_compatible_kernel | bool

0 comments on commit 96d87b4

Please sign in to comment.