Add Proxmox helper script detection to preflight

This commit is contained in:
Semaphore
2026-03-10 16:26:31 -07:00
parent a58b224ba3
commit fb8ea52d0f

View File

@@ -79,3 +79,13 @@
- name: Preflight complete - name: Preflight complete
ansible.builtin.debug: ansible.builtin.debug:
msg: "Preflight passed for {{ inventory_hostname }} — proceeding with maintenance" msg: "Preflight passed for {{ inventory_hostname }} — proceeding with maintenance"
- name: Check for Proxmox helper script marker
ansible.builtin.stat:
path: /usr/bin/update
register: helper_script_marker
- name: Log helper script detection
ansible.builtin.debug:
msg: "INFO: This LXC was deployed via Proxmox helper script — built-in update script detected at /usr/bin/update. Ansible will manage updates instead."
when: helper_script_marker.stat.exists