From fb8ea52d0f3896ab79865f8a68c34811fce16a7c Mon Sep 17 00:00:00 2001 From: Semaphore Date: Tue, 10 Mar 2026 16:26:31 -0700 Subject: [PATCH] Add Proxmox helper script detection to preflight --- roles/preflight/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/preflight/tasks/main.yml b/roles/preflight/tasks/main.yml index 4d4b593..d807f5f 100644 --- a/roles/preflight/tasks/main.yml +++ b/roles/preflight/tasks/main.yml @@ -79,3 +79,13 @@ - name: Preflight complete ansible.builtin.debug: 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