Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 104.21.25.182  /  Your IP : 216.73.217.22
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.9/site-packages/ansible/plugins/filter/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/ansible/plugins/filter/human_readable.yml
DOCUMENTATION:
  name: human_redable
  version_added: "historical"
  short_description: Make bytes/bits human readable
  description:
    - Convert byte or bit figures to more human readable formats.
  positional: _input, isbits, unit
  options:
    _input:
      description: Number of bytes, or bits. Depends on I(isbits).
      type: int
      required: true
    isbits:
      description: Whether the input is bits, instead of bytes.
      type: bool
      default: false
    unit:
      description: Unit to force output into. If none specified the largest unit arrived at will be used.
      type: str
      choices: [ 'Y', 'Z', 'E', 'P', 'T', 'G', 'M', 'K', 'B']
EXAMPLES: |

  # size => "1.15 GB"
  size: "{{ 1232345345 | human_readable }}"

  # size => "1.15 Gb"
  size_bits: "{{ 1232345345 | human_readable(true) }}"

  # size => "1175.26 MB"
  size_MB: "{{ 1232345345 | human_readable(unit='M') }}"

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

Youez - 2016 - github.com/yon3zu
LinuXploit