Extra character (carriage return?) when decoding base64-encoded string?

48 views
Skip to first unread message

Johannes Kastl

unread,
Jan 3, 2017, 10:07:04 AM1/3/17
to ansible...@googlegroups.com
Dear all,

I am not an expert on base64, but I guess this might be similar to
this issue:
<https://github.com/ansible/ansible/issues/5262>

I have a variable myvariable that contains a base64-encoded string
generated by this command:

cat binary_file | base64

I then use the copy-module to create the binary file:

copy: content="{{ myvariable | b64decode }}" ...

I then get a different file than what I had before, and it seems it is
just one character that is added.

I also tried to add "...|trim" to content=..., but to no avail.

Any hints?

Johannes

signature.asc

Johannes Kastl

unread,
Jan 11, 2017, 4:00:28 PM1/11/17
to ansible...@googlegroups.com
On 03.01.17 16:06 Johannes Kastl wrote:

> I then get a different file than what I had before, and it seems it
> is just one character that is added.
>
> Any hints?

https://github.com/ansible/ansible/issues/20150

Johannes

signature.asc
Reply all
Reply to author
Forward
0 new messages