modified: tasks/hostname.yml
This commit is contained in:
@@ -52,21 +52,22 @@
|
|||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: |
|
msg: |
|
||||||
💾 Mounted Filesystems
|
💾 Mounted Filesystems
|
||||||
-------------------------
|
=========================
|
||||||
{% for mount in ansible_mounts %}
|
{% for mount in ansible_mounts %}
|
||||||
Mount Point : {{ mount.mount }}
|
📍 Mount Point : {{ mount.mount }}
|
||||||
Device : {{ mount.device }}
|
🔌 Device : {{ mount.device }}
|
||||||
Fstype : {{ mount.fstype }}
|
🧱 Fstype : {{ mount.fstype }}
|
||||||
{% if 'size_used' in mount and 'size_total' in mount and mount.fstype not in ['tmpfs', 'overlay', 'squashfs']%}
|
{% 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 Total : {{ (mount.size_total | int // (1024 * 1024)) }} MB
|
||||||
Size Used : {{ (mount.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
|
✅ 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 %}
|
||||||
-------------------------
|
-------------------------
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
# 4. CURRENT USER DETAILS
|
# 4. CURRENT USER DETAILS
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user