ansible.builtin.human_readable (v2.16.5) — filter

Make bytes/bits human readable

| "added in version" historical of ansible.builtin"

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.5

Description

Convert byte or bit figures to more human readable formats.

Inputs

    
unit:
    choices:
    - Y
    - Z
    - E
    - P
    - T
    - G
    - M
    - K
    - B
    description: Unit to force output into. If none specified the largest unit arrived
      at will be used.
    type: str

_input:
    description: Number of bytes, or bits. Depends on O(isbits).
    required: true
    type: int

isbits:
    default: false
    description: Whether the input is bits, instead of bytes.
    type: bool

Outputs

_value:
  description: Human readable byte or bit size.
  type: str