From f06090bbc8ea802c73b2c6edca2b3637569cf77b Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 12 Oct 2025 07:49:14 +0200 Subject: [PATCH] modified: tasks/hostname.yml --- tasks/hostname.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tasks/hostname.yml b/tasks/hostname.yml index acba760..4160a10 100644 --- a/tasks/hostname.yml +++ b/tasks/hostname.yml @@ -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 # ----------------------------------------------------------------------