* Fix minor documentation error: base64 -> b64encode
(cherry picked from commit 36ab96e4a9
)
This commit is contained in:
parent
ad918699d2
commit
1f7bb82810
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
|
||||
# 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…
Reference in a new issue