Update ansible/update.yml

This commit is contained in:
2026-08-11 21:40:47 +02:00
parent 31c4bfba4a
commit fa905e09dc

View File

@@ -38,9 +38,8 @@
upgrade: true upgrade: true
- name: Sprawdzenie czy jądro systemu wymaga restartu (Alpine) - name: Sprawdzenie czy jądro systemu wymaga restartu (Alpine)
ansible.builtin.shell: | ansible.builtin.shell:
set -o pipefail cmd: |
[ -f /var/run/openrc/started/bootmisc ] || exit 0
running_kernel=$(uname -r) running_kernel=$(uname -r)
installed_kernel=$(ls -1 /boot/vmlinuz-* 2>/dev/null | tail -n1 | sed 's/.*vmlinuz-//') installed_kernel=$(ls -1 /boot/vmlinuz-* 2>/dev/null | tail -n1 | sed 's/.*vmlinuz-//')
if [ -n "$installed_kernel" ] && [ "$running_kernel" != "$installed_kernel" ]; then if [ -n "$installed_kernel" ] && [ "$running_kernel" != "$installed_kernel" ]; then