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
02a80445
Commit
02a80445
authored
Jan 28, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update kernel for centos 8
parent
596a8f9c
Pipeline
#2218
passed with stage
in 5 minutes and 24 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
12 deletions
+56
-12
tasks/dnf.yml
tasks/dnf.yml
+1
-1
tasks/kernel/CentOS.yml
tasks/kernel/CentOS.yml
+53
-10
tasks/upgrade.yml
tasks/upgrade.yml
+1
-0
tasks/yum.yml
tasks/yum.yml
+1
-1
No files found.
tasks/dnf.yml
View file @
02a80445
...
...
@@ -15,7 +15,7 @@
-
name
:
dnf
become
:
true
dnf
:
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,python3-pip,python3-devel,tcpdump,rsync,htop,mtr,net-tools,ctags,astyle,xclip,traceroute,tar,unzip,nmap,python3-libselinux,mosh,subversion,haveged,nfs-utils,ipset,fish
# nfs-common,fish
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,python3-pip,python3-devel,tcpdump,rsync,htop,mtr,net-tools,ctags,astyle,xclip,traceroute,tar,unzip,nmap,python3-libselinux,mosh,subversion,haveged,nfs-utils,ipset,fish
,wireguard-tools
# nfs-common,fish
update_cache
:
yes
-
name
:
Fedora packages
become
:
true
...
...
tasks/kernel/CentOS.yml
View file @
02a80445
-
name
:
elrepo-release
-
name
:
yum
elrepo-release
become
:
true
yum
:
update_cache
:
yes
name
:
epel-release,elrepo-release
when
:
ansible_distribution_major_version|int ==
7
-
name
:
yum plugin
become
:
true
yum
:
update_cache
:
yes
name
:
yum-plugin-elrepo
#- name: remove old kernel headers
# become: true
# yum:
# name: kernel-devel,kernel-headers
# state: absent
-
name
:
install kernel
when
:
ansible_distribution_major_version|int ==
7
-
name
:
yum install kernel
become
:
true
yum
:
update_cache
:
yes
state
:
latest
name
:
kernel-ml
enablerepo
:
elrepo-kernel
-
name
:
kernel-devel if possible
when
:
ansible_distribution_major_version|int ==
7
-
name
:
yum kernel-devel if possible
become
:
true
ignore_errors
:
true
yum
:
state
:
latest
name
:
kernel-ml-devel
enablerepo
:
elrepo-kernel
-
name
:
kernel-headers if possible
when
:
ansible_distribution_major_version|int ==
7
-
name
:
yum kernel-headers if possible
become
:
true
ignore_errors
:
true
yum
:
state
:
latest
name
:
kernel-ml-headers
enablerepo
:
elrepo-kernel
-
name
:
remove wireguard-dkms
when
:
ansible_distribution_major_version|int ==
7
-
name
:
yum remove wireguard-dkms
become
:
true
yum
:
name
:
kmod-wireguard,wireguard-dkms
state
:
absent
when
:
ansible_distribution_major_version|int >=
8
-
name
:
dnf elrepo-release
become
:
true
dnf
:
update_cache
:
yes
name
:
epel-release,elrepo-release
when
:
ansible_distribution_major_version|int >=
8
-
name
:
dnf plugin
become
:
true
dnf
:
update_cache
:
yes
name
:
dnf-plugin-elrepo
when
:
ansible_distribution_major_version|int >=
8
-
name
:
dnf install kernel
become
:
true
dnf
:
update_cache
:
yes
state
:
latest
name
:
kernel-ml
enablerepo
:
elrepo-kernel
when
:
ansible_distribution_major_version|int >=
8
-
name
:
dnf kernel-devel if possible
become
:
true
ignore_errors
:
true
dnf
:
state
:
latest
name
:
kernel-ml-devel
enablerepo
:
elrepo-kernel
when
:
ansible_distribution_major_version|int >=
8
-
name
:
dnf kernel-headers if possible
become
:
true
ignore_errors
:
true
dnf
:
state
:
latest
name
:
kernel-ml-headers
enablerepo
:
elrepo-kernel
when
:
ansible_distribution_major_version|int >=
8
-
name
:
dnf remove wireguard-dkms
become
:
true
dnf
:
name
:
kmod-wireguard,wireguard-dkms
state
:
absent
when
:
ansible_distribution_major_version|int >=
8
-
name
:
change grub
become
:
true
lineinfile
:
...
...
tasks/upgrade.yml
View file @
02a80445
...
...
@@ -15,6 +15,7 @@
become
:
true
dnf
:
name
:
'
*'
update_cache
:
true
state
:
latest
when
:
ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >=
8
-
name
:
install a python alternate to prevent ansible problems
...
...
tasks/yum.yml
View file @
02a80445
...
...
@@ -5,7 +5,7 @@
-
name
:
yum
become
:
true
yum
:
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,python-pip,python-devel,python3-pip,python3-devel,tcpdump,rsync,htop,mtr,net-tools,ctags,xclip,traceroute,tar,unzip,iperf,iperf3,nmap,libselinux-python,libselinux-python3,mosh,subversion,fish,haveged,mtr,rsync,nfs-utils,ipset
# astyle
name
:
curl,wget,git,vim,sudo,byobu,iftop,iotop,gcc,gcc-c++,make,autoconf,p7zip,p7zip-plugins,python-pip,python-devel,python3-pip,python3-devel,tcpdump,rsync,htop,mtr,net-tools,ctags,xclip,traceroute,tar,unzip,iperf,iperf3,nmap,libselinux-python,libselinux-python3,mosh,subversion,fish,haveged,mtr,rsync,nfs-utils,ipset
,wireguard-tools
# astyle
update_cache
:
yes
-
name
:
open-vm-tools
become
:
true
...
...
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