modified: tasks/download-image.yml
This commit is contained in:
@@ -33,6 +33,10 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: not debian_img_final.stat.exists or debian_img_final.stat.size == 0
|
failed_when: not debian_img_final.stat.exists or debian_img_final.stat.size == 0
|
||||||
|
|
||||||
|
- name: Debug mtime type
|
||||||
|
debug:
|
||||||
|
msg: "mtime={{ debian_img_final.stat.mtime }} ({{ debian_img_final.stat.mtime | type_debug }})"
|
||||||
|
|
||||||
- name: "[IMAGE] Display image info"
|
- name: "[IMAGE] Display image info"
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: |
|
msg: |
|
||||||
@@ -40,4 +44,4 @@
|
|||||||
Size: {{ debian_img_final.stat.size | int / 1024 / 1024 / 1024 | round(2) }} GB
|
Size: {{ debian_img_final.stat.size | int / 1024 / 1024 / 1024 | round(2) }} GB
|
||||||
Last modified: {{ debian_img_final.stat.mtime | float | round(0, 'floor') | int | strftime('%Y-%m-%d %H:%M:%S') }}
|
Last modified: {{ debian_img_final.stat.mtime | float | round(0, 'floor') | int | strftime('%Y-%m-%d %H:%M:%S') }}
|
||||||
|
|
||||||
# Last modified: {{ debian_img_final.stat.mtime | int | strftime('%Y-%m-%d %H:%M:%S') }}
|
# Last modified: {{ debian_img_final.stat.mtime | int | strftime('%Y-%m-%d %H:%M:%S') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user