summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins/filter/b64decode.yml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/plugins/filter/b64decode.yml')
-rw-r--r--lib/ansible/plugins/filter/b64decode.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/plugins/filter/b64decode.yml b/lib/ansible/plugins/filter/b64decode.yml
index af8045a7..30565fa9 100644
--- a/lib/ansible/plugins/filter/b64decode.yml
+++ b/lib/ansible/plugins/filter/b64decode.yml
@@ -7,7 +7,7 @@ DOCUMENTATION:
- Base64 decoding function.
- The return value is a string.
- Trying to store a binary blob in a string most likely corrupts the binary. To base64 decode a binary blob,
- use the ``base64`` command and pipe the encoded data through standard input.
+ use the ``base64`` command and pipe the encoded data through standard input.
For example, in the ansible.builtin.shell`` module, ``cmd="base64 --decode > myfile.bin" stdin="{{ encoded }}"``.
positional: _input
options:
@@ -21,7 +21,7 @@ EXAMPLES: |
lola: "{{ 'bG9sYQ==' | b64decode }}"
# b64 decode the content of 'b64stuff' variable
- stuff: "{{ b64stuff | b64decode }}"
+ stuff: "{{ b64stuff | b64encode }}"
RETURN:
_value: