modified: tasks/hostname.yml

This commit is contained in:
2025-10-12 07:56:20 +02:00
parent 1182691b28
commit f2a730476a

View File

@@ -48,24 +48,24 @@
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# 3. STORAGE INFORMATION # 3. STORAGE INFORMATION
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
- name: Display each mounted filesystem - name: Display Mounted Filesystems Summary (Safely)
ansible.builtin.debug: ansible.builtin.debug:
msg: | msg: |
💾 Mounted Filesystem Mounted Filesystems
------------------------- =========================
Mount Point : {{ item.mount }} {% for mount in ansible_mounts %}
Device : {{ item.device }} Mount Point : {{ mount.mount }}
Fstype : {{ item.fstype }} Device : {{ mount.device }}
{% if 'size_used' in item and 'size_total' in item and item.fstype not in ['tmpfs', 'overlay', 'squashfs'] %} Fstype : {{ mount.fstype }}
Size Total : {{ (item.size_total | int // (1024 * 1024)) }} MB {% if 'size_used' in mount and 'size_total' in mount and mount.fstype not in ['tmpfs', 'overlay', 'squashfs'] %}
Size Used : {{ (item.size_used | int // (1024 * 1024)) }} MB Size Total : {{ (mount.size_total | int // (1024 * 1024)) }} MB
Size Avail : {{ ((item.size_total | int - item.size_used | int) // (1024 * 1024)) }} MB Size Used : {{ (mount.size_used | int // (1024 * 1024)) }} MB
Size Avail : {{ ((mount.size_total | int - mount.size_used | int) // (1024 * 1024)) }} MB
{% else %} {% else %}
Size Info : Not Available Size Info : Not Available
{% endif %} {% endif %}
loop: "{{ ansible_mounts }}" -------------------------
when: item.fstype != 'tmpfs' and item.fstype != 'overlay' and item.fstype != 'squashfs' {% endfor %}
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------