Commit 4216be62 authored by nanahira's avatar nanahira

kernel

parent 7c716bfe
...@@ -8,12 +8,12 @@ ...@@ -8,12 +8,12 @@
apt: apt:
name: r8168-dkms name: r8168-dkms
default_release: '{{ target_distribution }}-backports' default_release: '{{ target_distribution }}-backports'
when: check_rtl_result.rc == 0 and ansible_distribution_release != 'sid' when: check_rtl_result.rc == 0 and target_distribution != 'sid' and target_distribution != 'bullseye'
- name: install RTL8111 driver for sid - name: install RTL8111 driver for sid
become: true become: true
apt: apt:
name: r8168-dkms name: r8168-dkms
when: check_rtl_result.rc == 0 and ansible_distribution_release == 'sid' 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
......
...@@ -14,11 +14,19 @@ ...@@ -14,11 +14,19 @@
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: '{{ target_distribution }}-backports' default_release: '{{ install_kernel_release }}'
when: ansible_distribution_release != 'sid' when: ansible_distribution_release != 'sid'
...@@ -13,7 +13,7 @@ deb {{mirror_ubuntu}}/ubuntu/ {{ target_distribution }}-updates main restricted ...@@ -13,7 +13,7 @@ deb {{mirror_ubuntu}}/ubuntu/ {{ target_distribution }}-updates main restricted
deb {{mirror_debian}}/debian {{ target_distribution }} main contrib non-free deb {{mirror_debian}}/debian {{ target_distribution }} main contrib non-free
{% if target_distribution != 'sid' %} {% if target_distribution != 'sid' %}
deb {{mirror_debian}}/debian {{ target_distribution }}-updates main contrib non-free deb {{mirror_debian}}/debian {{ target_distribution }}-updates main contrib non-free
{% if target_distribution == 'bullseye' or target_distribution == 'testing' %} {% if target_distribution == 'bullseye' or target_distribution == 'bookworm' or target_distribution == 'testing' %}
deb {{mirror_debian_security}}/debian-security {{ target_distribution }}-security main contrib non-free deb {{mirror_debian_security}}/debian-security {{ target_distribution }}-security main contrib non-free
{% else %} {% else %}
deb {{mirror_debian_security}}/debian-security {{ target_distribution }}/updates main contrib non-free deb {{mirror_debian_security}}/debian-security {{ target_distribution }}/updates main contrib non-free
......
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