Commit 7b4dc37f authored by nanahira's avatar nanahira

kernel

parent bad3ed62
Pipeline #4715 failed with stage
in 10 seconds
...@@ -7,13 +7,7 @@ ...@@ -7,13 +7,7 @@
become: true become: true
apt: apt:
name: r8168-dkms name: r8168-dkms
default_release: '{{ target_distribution }}-backports' when: check_rtl_result.rc == 0
when: check_rtl_result.rc == 0 and target_distribution != 'sid' and target_distribution != 'bullseye'
- name: install RTL8111 driver for sid
become: true
apt:
name: r8168-dkms
when: check_rtl_result.rc == 0 and (target_distribution == 'sid' or target_distribution == 'bullseye')
- name: check b43 - name: check b43
shell: 'lspci | grep BCM4322' shell: 'lspci | grep BCM4322'
register: check_b43_result register: check_b43_result
...@@ -24,9 +18,3 @@ ...@@ -24,9 +18,3 @@
apt: apt:
name: firmware-b43-installer name: firmware-b43-installer
when: check_b43_result.rc == 0 when: check_b43_result.rc == 0
- name: remove wireguard-dkms
become: true
apt:
name: wireguard-dkms
state: absent
purge: true
- name: amd64 arch
set_fact:
install_kernel_arch: amd64
when: ansible_architecture == 'x86_64'
- name: arm64 arch
set_fact:
install_kernel_arch: arm64
when: ansible_architecture == 'aarch64'
- name: use non-cloud kernel - name: use non-cloud kernel
set_fact: set_fact:
install_kernel_name: linux-image-{{install_kernel_arch}},linux-headers-{{install_kernel_arch}} install_kernel_name: linux-image-{{install_kernel_arch}},linux-headers-{{install_kernel_arch}}
...@@ -14,19 +6,10 @@ ...@@ -14,19 +6,10 @@
set_fact: set_fact:
install_kernel_name: linux-image-cloud-{{install_kernel_arch}},linux-headers-cloud-{{install_kernel_arch}} install_kernel_name: linux-image-cloud-{{install_kernel_arch}},linux-headers-cloud-{{install_kernel_arch}}
when: cloud_kernel == "enabled" or cloud_kernel == "auto" and ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm" when: cloud_kernel == "enabled" or cloud_kernel == "auto" and ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm"
- name: use backports
set_fact:
install_kernel_release: '{{ target_distribution }}-backports'
when: target_distribution != 'bullseye'
- name: use main
set_fact:
install_kernel_release: '{{ target_distribution }}'
when: target_distribution == 'bullseye'
- name: install kernel - name: install kernel
become: true become: true
apt: apt:
name: '{{install_kernel_name}}' name: '{{install_kernel_name}}'
state: latest state: latest
update_cache: true update_cache: true
default_release: '{{ install_kernel_release }}'
when: ansible_distribution_release != 'sid' when: ansible_distribution_release != 'sid'
- name: amd64 arch
set_fact:
install_kernel_arch: amd64
when: ansible_architecture == 'x86_64'
- name: arm64 arch
set_fact:
install_kernel_arch: arm64
when: ansible_architecture == 'aarch64'
- name: other arch
set_fact:
install_kernel_arch: '{{ansible_architecture}}'
when: not install_kernel_arch is defined
- name: copy apt pref
become: true
copy:
content: |
Package: libnvpair1linux libuutil1linux libzfs2linux libzpool2linux spl-dkms zfs-dkms zfs-test zfsutils-linux zfsutils-linux-dev zfs-zed r8168-dkms linux-image-{{install_kernel_arch}} linux-headers-{{install_kernel_arch}} linux-image-cloud-{{install_kernel_arch}} linux-headers-cloud-{{install_kernel_arch}}
Pin: release n={{target_distribution}}-backports
Pin-Priority: 990
dest: /etc/apt/preferences.d/90_mycard_init
when: ansible_distribution == 'Debian'
- name: install xanmod - name: install xanmod
include_tasks: 'xanmod.yml' include_tasks: 'xanmod.yml'
when: xanmod and ansible_os_family == 'Debian' when: xanmod and ansible_os_family == 'Debian'
......
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