Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS 7.9 compatibility #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions tasks/install-RedHat-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@

- name: "Ensure kernel packages versions with YUM"
yum:
name: "{{ item.name }}-{{ _kernel }}"
enablerepo: "{{ yum_kernel_list |
rhel_repo(kernel_version, ansible_kernel) }}.*"
name: "{{ item.name }}"
enablerepo: "base-debuginfo,{{ yum_kernel_list |
rhel_repo(kernel_version, ansible_kernel) }}"
allow_downgrade: "{{ item.downgrade | default(false) }}"
when:
- ansible_os_family == 'RedHat'
Expand All @@ -63,28 +63,28 @@
with_items:
# Kernel and kernel-devel have multiversion support, so do not need
# to be downgrades
- name: kernel
- name: "kernel-{{ _kernel }}"
when: true
- name: "kernel-tools"
- name: "kernel-tools-{{ _kernel }}, kernel-tools-libs-{{ _kernel }}"
when: true
downgrade: true
- name: kernel-devel
- name: "kernel-devel-{{ _kernel }}"
when: "{{ install_kernel_headers | bool }}"
- name: kernel-headers
- name: "kernel-headers-{{ _kernel }}"
when: "{{ install_kernel_headers | bool }}"
downgrade: true
- name: kernel-debuginfo
- name: "kernel-debuginfo-{{ _kernel }}"
when: "{{ install_kernel_debuginfo | bool }}"
downgrade: true
- name: kernel-tools-debuginfo
- name: "kernel-tools-debuginfo-{{ _kernel }}"
when: "{{ install_kernel_debuginfo | bool }}"
downgrade: true
- name: perf
- name: "perf-{{ _kernel }}"
when: "{{ install_perf | bool }}"
downgrade: true
- name: python-perf
- name: "python-perf-{{ _kernel }}"
when: "{{ install_perf | bool }}"
downgrade: true
- name: bpftool
- name: "bpftool-{{ _kernel }}"
when: "{{ install_bpftool | bool }}"
downgrade: true