*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 90735e55 authored by entlein's avatar entlein
Browse files

not upgradeing the kernel or rebooting anymore

parent 7e0a658a
Branches
No related tags found
1 merge request!1Restore main as the default branch
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
- block: - block:
- include_tasks: setup_host.yml - include_tasks: setup_host.yml
- include_tasks: install_rke2.yml - include_tasks: install_rke2.yml
when: ( not rke2_installed.stat.exists and state != 'absent' ) or (upgrade and state != 'absent' ) # when: ( not rke2_installed.stat.exists and state != 'absent' ) or (upgrade and state != 'absent' )
- include_tasks: templates.yml - include_tasks: templates.yml
when: "state != 'absent' and 'master' in group_names " when: "state != 'absent' and 'master' in group_names "
......
...@@ -13,29 +13,29 @@ ...@@ -13,29 +13,29 @@
/usr/sbin/pvresize -y -q /dev/vda2 /usr/sbin/pvresize -y -q /dev/vda2
/usr/sbin/lvresize -y -q -r -l +100%FREE /dev/mapper/*root /usr/sbin/lvresize -y -q -r -l +100%FREE /dev/mapper/*root
- name: Upgrade to latest kernel #- name: Upgrade to latest kernel
shell: | # shell: |
dnf upgrade -y # dnf upgrade -y
dnf updateinfo list --security --available # dnf updateinfo list --security --available
dnf install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm --assumeyes # dnf install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm --assumeyes
dnf --enablerepo=elrepo-kernel install kernel-ml --assumeyes # dnf --enablerepo=elrepo-kernel install kernel-ml --assumeyes
touch /.autorelabel # touch /.autorelabel
- name: install RHEL packages #- name: install RHEL packages
dnf: # dnf:
name: # name:
- container-selinux # - container-selinux
- iptables # - iptables
- libnetfilter_conntrack # - libnetfilter_conntrack
- libnfnetlink # - libnfnetlink
- libnftnl # - libnftnl
- policycoreutils-python-utils # - policycoreutils-python-utils
- ca-certificates # - ca-certificates
- openssl # - openssl
- setools-console # - setools-console
# - libseccomp-devel #this didnt help # # - libseccomp-devel #this didnt help
#
state: latest # state: latest
- name: add kernel params - name: add kernel params
template: template:
...@@ -72,10 +72,10 @@ ...@@ -72,10 +72,10 @@
name: etcd name: etcd
group: etcd group: etcd
- name: Reboot but not on upgrades, so kernel updates only install at initial runs #- name: Reboot but not on upgrades, so kernel updates only install at initial runs
ansible.builtin.reboot: # ansible.builtin.reboot:
reboot_timeout: 3600 # reboot_timeout: 3600
when: ( not upgrade ) # when: ( not upgrade )
- name: Disable SELinux - name: Disable SELinux
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment