Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
init
Commits
4216be62
Commit
4216be62
authored
Aug 15, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel
parent
7c716bfe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
4 deletions
+12
-4
tasks/kernel/Debian-after.yml
tasks/kernel/Debian-after.yml
+2
-2
tasks/kernel/Debian.yml
tasks/kernel/Debian.yml
+9
-1
templates/sources.list.j2
templates/sources.list.j2
+1
-1
No files found.
tasks/kernel/Debian-after.yml
View file @
4216be62
...
@@ -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
...
...
tasks/kernel/Debian.yml
View file @
4216be62
...
@@ -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'
templates/sources.list.j2
View file @
4216be62
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment