Calculating numbers (math)
You can calculate logs, powers, and roots of numbers with Ansible filters. Jinja2 provides other mathematical functions like abs() and round().
Get the logarithm (default is e):
Get the base 10 logarithm:
Give me the power of 2! (or 5):
Square root, or the 5th: