diff --git a/tasks/hostname.yml b/tasks/hostname.yml index 58cc82d..d84ca23 100644 --- a/tasks/hostname.yml +++ b/tasks/hostname.yml @@ -57,7 +57,7 @@ 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'] %} + {% if mount.size_total is defined and mount.size_used is defined 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 @@ -67,7 +67,6 @@ ------------------------- {% endfor %} - # ---------------------------------------------------------------------- # 4. CURRENT USER DETAILS # ----------------------------------------------------------------------