Made variable global with cacheable
This commit is contained in:
@@ -24,6 +24,12 @@
|
|||||||
- (ansible_date_time.epoch | int) - (marker_file_stat.stat.mtime | int) < (ansible_reboot_cooldown_minutes | int * 60)
|
- (ansible_date_time.epoch | int) - (marker_file_stat.stat.mtime | int) < (ansible_reboot_cooldown_minutes | int * 60)
|
||||||
tags: always
|
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
|
- name: pre-run | update apt repository (debian, ubuntu, etc.) # noqa no-changed-when
|
||||||
apt: update_cache=yes
|
apt: update_cache=yes
|
||||||
#changed_when: false
|
#changed_when: false
|
||||||
|
|||||||
Reference in New Issue
Block a user