MOON
Server: Apache
System: Linux kvm.asjudinet.com 5.14.0-611.54.6.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 04:23:18 EDT 2026 x86_64
User: asjudine (1001)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3.9/site-packages/ansible/plugins/filter/root.yml
DOCUMENTATION:
  name: root
  version_added: "1.9"
  short_description: root of (math operation)
  description:
    - Math operation that returns the Nth root of inputed number C(X ^^ N).
  positional: _input, base
  options:
    _input:
      description: Number to operate on.
      type: float
      required: true
    base:
      description: Which root to take.
      type: float
      default: 2

EXAMPLES: |

  # => 8
  fiveroot: "{{ 32768 | root (5) }}"

  # 2
  sqrt_of_2: "{{ 4 | root }}"

  # me ^^ 3
  cuberoot_me: "{{ me | root(3) }}"

RETURN:
  _value:
    description: Resulting number.
    type: float