1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

* Fix minor documentation error: base64 -> b64encode

* Fix minor documentation error: base64 -> b64encode
This commit is contained in:
Jonas Kongslund 2019-04-14 13:30:27 +04:00 committed by ansibot
parent 7599229310
commit 36ab96e4a9
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ EXAMPLES = '''
# If the file is JSON or binary, Ansible might modify it (because # If the file is JSON or binary, Ansible might modify it (because
# it is first decoded and later re-encoded). Base64-encoding the # it is first decoded and later re-encoded). Base64-encoding the
# file directly after reading it prevents this to happen. # 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 data_is_b64: true
state: present state: present

View file

@ -85,7 +85,7 @@ EXAMPLES = '''
# If the file is JSON or binary, Ansible might modify it (because # If the file is JSON or binary, Ansible might modify it (because
# it is first decoded and later re-encoded). Base64-encoding the # it is first decoded and later re-encoded). Base64-encoding the
# file directly after reading it prevents this to happen. # 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 data_is_b64: true
state: present state: present