b64encode¶
Collection Note
This module is part of the ansible.builtin collection. To install the collection, use:
Added in versionhistorical.
Synopsis¶
- Base64 encoding function.
Parameters¶
| Parameter | Defaults / Choices | Comments |
|---|---|---|
| _input string required |
A string to encode. |
Examples¶
# Base64 encode a string
b64lola: "{{ 'lola'| b64encode }}"
# Base64 encode the content of 'stuff' variable
b64stuff: "{{ stuff | b64encode }}"
Return Values¶
| Key | Data Type | Description | Returned |
|---|---|---|---|
| _value | string | A Base64 encoded string. |
Authors¶
- Ansible Core Team