refactor: remove debug output for mtime and format last modified timestamp
This commit is contained in:
@@ -33,15 +33,9 @@
|
||||
changed_when: false
|
||||
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 }})
|
||||
{{ debian_img_final.stat.mtime | int | strftime('%Y-%m-%d %H:%M:%S') }}
|
||||
|
||||
- name: "[IMAGE] Display image info"
|
||||
ansible.builtin.debug:
|
||||
msg: |
|
||||
Image cached at: {{ debian_image_path }}
|
||||
Size: {{ debian_img_final.stat.size | int / 1024 / 1024 / 1024 | round(2) }} GB
|
||||
Last modified: {{ debian_img_final.stat.mtime | int | strftime('%Y-%m-%d %H:%M:%S') }}
|
||||
Last modified: {{ '%Y%m%d-%H%M%S' | strftime(debian_img_final.stat.mtime) }}
|
||||
Reference in New Issue
Block a user