From a7636887b169cbf022e021cf34625b78882f86ac Mon Sep 17 00:00:00 2001 From: cproudlock Date: Thu, 12 Feb 2026 16:41:07 -0500 Subject: [PATCH] Add daily cron to refresh Media.tag (30-day expiry workaround) PESetup.exe checks Media.tag last modified date and rejects it after 30 days. Cron job touches all Media.tag files daily at midnight. Co-Authored-By: Claude Opus 4.6 --- playbook/pxe_server_setup.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/playbook/pxe_server_setup.yml b/playbook/pxe_server_setup.yml index aee3935..41257ec 100644 --- a/playbook/pxe_server_setup.yml +++ b/playbook/pxe_server_setup.yml @@ -391,6 +391,12 @@ force: no loop: "{{ image_types }}" + - name: "Daily cron to refresh Media.tag (PESetup.exe 30-day expiry check)" + copy: + content: "0 0 * * * root find {{ samba_share }}/*/Deploy/Control -name Media.tag -exec touch {} +\n" + dest: /etc/cron.d/media-tag-refresh + mode: '0644' + - name: "Copy WinPE & boot files from USB (skipped if not present)" copy: src: "{{ usb_root }}/{{ item.src }}"