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