Hi everyone,
This snippet:
Test blockinfle create
- name: Testing /tmp/foo
blockinfile: dest=/tmp/foo create=yes block=‘My Content’
become: false
Creates /tmp/foo with no ending newline after the END marker:
$ cat /tmp/foo
BEGIN ANSIBLE MANAGED BLOCK
My Content
END ANSIBLE MANAGED BLOCK]$
Any suggestions?
—Kayvan