Fix minor documentation error: base64 -> b64encode (#55257)

* Fix minor documentation error: base64 -> b64encode

* Fix minor documentation error: base64 -> b64encode
pull/55257/merge
Jonas Kongslund 6 years ago committed by ansibot
parent 7599229310
commit 36ab96e4a9

@ -85,7 +85,7 @@ EXAMPLES = '''
# If the file is JSON or binary, Ansible might modify it (because
# it is first decoded and later re-encoded). Base64-encoding the
# file directly after reading it prevents this to happen.
data: "{{ lookup('file', '/path/to/config/file') | base64 }}"
data: "{{ lookup('file', '/path/to/config/file') | b64encode }}"
data_is_b64: true
state: present

@ -85,7 +85,7 @@ EXAMPLES = '''
# If the file is JSON or binary, Ansible might modify it (because
# it is first decoded and later re-encoded). Base64-encoding the
# file directly after reading it prevents this to happen.
data: "{{ lookup('file', '/path/to/secret/file') | base64 }}"
data: "{{ lookup('file', '/path/to/secret/file') | b64encode }}"
data_is_b64: true
state: present

Loading…
Cancel
Save