From ad53e1630f99fdd556c1bbec4e2f50d3cc9b9fe5 Mon Sep 17 00:00:00 2001 From: Rene Mewissen Date: Fri, 3 Oct 2025 09:13:16 +0200 Subject: [PATCH] Made variable global with cacheable --- local.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/local.yml b/local.yml index 0e9f4e6..0b8a6cf 100644 --- a/local.yml +++ b/local.yml @@ -24,6 +24,12 @@ - (ansible_date_time.epoch | int) - (marker_file_stat.stat.mtime | int) < (ansible_reboot_cooldown_minutes | int * 60) tags: always + - name: pre-run | set marker file path as a cached fact + set_fact: + ansible_pull_marker_file: "{{ ansible_pull_marker_file }}" + cacheable: true + tags: always + - name: pre-run | update apt repository (debian, ubuntu, etc.) # noqa no-changed-when apt: update_cache=yes #changed_when: false