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
7b4dc37f
Commit
7b4dc37f
authored
Aug 15, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel
parent
bad3ed62
Pipeline
#4715
failed with stage
in 10 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
30 deletions
+22
-30
tasks/kernel/Debian-after.yml
tasks/kernel/Debian-after.yml
+1
-13
tasks/kernel/Debian.yml
tasks/kernel/Debian.yml
+0
-17
tasks/kernel/entry.yml
tasks/kernel/entry.yml
+21
-0
No files found.
tasks/kernel/Debian-after.yml
View file @
7b4dc37f
...
@@ -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
tasks/kernel/Debian.yml
View file @
7b4dc37f
-
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'
tasks/kernel/entry.yml
View file @
7b4dc37f
-
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'
...
...
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