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

Commit

Permalink
Add missing repositories for CentOS 8 and RHEL7/8.
Browse files Browse the repository at this point in the history
  • Loading branch information
JGoutin committed Jun 30, 2021
1 parent 2c7cdbe commit 038a008
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 5 deletions.
5 changes: 1 addition & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ jobs:
tagPattern: '[0-9]+\.[0-9]+\.[0-9]+'
isPreRelease: contains($(libraryVersion.version), '-')
releaseNotesSource: inline
releaseNotesInline: |
Release of version $(libraryVersion.version).
Role Available on Ansible galaxy.
releaseNotesInline: Role Available on Ansible galaxy.
changeLogCompareToRelease: lastFullRelease
changeLogType: commitBased
5 changes: 5 additions & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ platforms:
groups:
- xrt_2018_2

- name: centos_8-2021.1
image: centos:8
groups:
- xrt_2021_1

- name: centos_7-2020.1
image: centos:7
groups:
Expand Down
1 change: 1 addition & 0 deletions tasks/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
name: "{{ xrt_tmp.path }}/{{ aws_package }}"
state: present
install_weak_deps: false
disable_gpg_check: true
retries: 10
delay: 1
register: _xrt_aws_rpm
Expand Down
59 changes: 58 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,11 @@

- name: Ensure EPEL repository is installed
yum:
name: epel-release
name: "https://dl.fedoraproject.org/pub/epel/\
epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
state: present
install_weak_deps: false
disable_gpg_check: true
retries: 10
delay: 1
register: _epel
Expand All @@ -124,6 +126,60 @@
- xilinx_xrt_install | bool
- not xbutil.stat.exists
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version in ("7", "8")

- name: Ensure RHEL optional RPMs repository is enabled
command:
cmd: subscription-manager repos --enable "rhel-7-server-optional-rpms"
args:
warn: false
changed_when: false
when:
- ansible_distribution == "Red Hat Enterprise Linux"
- ansible_distribution_major_version == "7"

- name: Ensure CodeReady Linux Builder repository is enabled
command:
cmd: subscription-manager repos --enable "codeready-builder-for-rhel-8-x86_64-rpms"
args:
warn: false
changed_when: false
when:
- ansible_distribution == "Red Hat Enterprise Linux"
- ansible_distribution_major_version == "8"

- name: Ensure DNF core plugins are installed
dnf:
state: present
name: python3-dnf-plugins-core
install_weak_deps: false
retries: 10
delay: 1
register: _dnf_plugins
until: _dnf_plugins is successful
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "8"

- name: Ensure Powertools repository is enabled
command:
cmd: dnf config-manager --set-enabled powertools
args:
warn: false
changed_when: false
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "8"

- name: Ensure AppStream repository is enabled
command:
cmd: dnf config-manager --set-enabled appstream
args:
warn: false
changed_when: false
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "8"

- name: Ensure Kernel headers RPM are installed
yum:
Expand All @@ -149,6 +205,7 @@
name: "{{ xrt_tmp.path }}/{{ xrt_package }}"
state: present
install_weak_deps: false
disable_gpg_check: true
retries: 10
delay: 1
register: _xrt_rpm
Expand Down

0 comments on commit 038a008

Please sign in to comment.