Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
Problem: blockinfile with create=yes creates a file with no ending newline
95 views
Skip to first unread message
Kayvan Sylvan
unread,
Jul 20, 2016, 10:53:18 AM
7/20/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages