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:
parent
7599229310
commit
36ab96e4a9
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue