Initial commit of roles-refactor branch

This commit is contained in:
2026-04-06 10:13:20 -04:00
parent c5217c1a0f
commit 56a93411de
9 changed files with 171 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
---
- name: Check if kernel or microcode update requires reboot
ansible.builtin.script: check_reboot.zsh # Your script placed in files/
register: reboot_check
# Prevent Ansible from failing if the script returns false (exit code 1)
failed_when: false
# Trigger the handler ONLY if the script returns true (exit code 0)
changed_when: reboot_check.rc == 0
notify: Reboot system