modified: tasks/hostname.yml

This commit is contained in:
2025-10-12 07:49:14 +02:00
parent 125ca70b70
commit f06090bbc8

View File

@@ -52,21 +52,22 @@
ansible.builtin.debug:
msg: |
💾 Mounted Filesystems
-------------------------
=========================
{% for mount in ansible_mounts %}
Mount Point : {{ mount.mount }}
Device : {{ mount.device }}
Fstype : {{ mount.fstype }}
{% if 'size_used' in mount and 'size_total' in mount and mount.fstype not in ['tmpfs', 'overlay', 'squashfs']%}
Size Total : {{ (mount.size_total | 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
📍 Mount Point : {{ mount.mount }}
🔌 Device : {{ mount.device }}
🧱 Fstype : {{ mount.fstype }}
{% if 'size_used' in mount and 'size_total' in mount and mount.fstype not in ['tmpfs', 'overlay', 'squashfs'] %}
📦 Size Total : {{ (mount.size_total | 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 %}
Size Info : Not Available
📉 Size Info : Not Available
{% endif %}
-------------------------
{% endfor %}
# ----------------------------------------------------------------------
# 4. CURRENT USER DETAILS
# ----------------------------------------------------------------------