Commit 7bc06d1e authored by nanahira's avatar nanahira

centos kernel

parent 3ec58578
Pipeline #2209 failed with stage
in 7 minutes and 15 seconds
- name: elrepo-release
become: true
yum:
update_cache: yes
name: epel-release,elrepo-release
- name: yum plugin
become: true
yum:
update_cache: yes
name: yum-plugin-elrepo
- name: install kernel
become: true
yum:
update_cache: yes
state: latest
name: kernel-ml,kernel-ml-devel,kernel-ml-headers
enablerepo: elrepo-kernel
- name: remove wireguard-dkms
become: true
yum:
name: kmod-wireguard,wireguard-dkms
state: absent
......@@ -26,9 +26,9 @@
apt:
name: nvidia-driver-{{ nvidia_driver_version }}
when: nvidia_driver_version
- name: debian kernel
include_tasks: debian_kernel.yml
when: ansible_distribution == 'Debian' and ansible_virtualization_type != "docker"
- name: upgrade kernel
include_tasks: 'kernel/{{ansible_distribution}}.yml'
when: (ansible_distribution == 'Debian' or ansible_distribution == 'CentOS') and ansible_virtualization_type != "docker"
- name: 系统源 重启
become: true
shell: reboot
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment