commited current state

This commit is contained in:
DerLinkman
2026-05-08 21:27:10 +02:00
parent ffc1a6a8a5
commit 45ccd6a25f
43 changed files with 576 additions and 102 deletions
+7 -4
View File
@@ -16,12 +16,15 @@
echo "{{ latest_kernel.stdout }}" | grep -c $(uname -r)
register: kernel_match
changed_when: false
ignore_errors: true
when: ansible_virtualization_type != 'lxc'
failed_when: false
when: ansible_facts['virtualization_type'] != 'lxc'
- name: Mark reboot required if a new kernel is installed
set_fact:
reboot_required: "yes"
changed_when: true
notify:
- Reboot system
when:
- ansible_virtualization_type != 'lxc'
- kernel_match.stdout == "0"
- ansible_facts['virtualization_type'] != 'lxc'
- (kernel_match.stdout | int) == 0