Ansible 1.6.9-10 line break issue

41 views
Skip to first unread message

Patrick Heeney

unread,
Aug 5, 2014, 7:16:55 PM8/5/14
to ansible...@googlegroups.com
Hello, I have a bunch of plabyooks with tasks that look like this:

- name: xdebug | set ini 
  template: >
    src=xdebug.ini.j2
    dest=/etc/php5/mods-available/xdebug-options.ini

- name: xdebug | add xdebug cli
  template: >
    src=cli_alias.j2
    dest={{ path_php_xdebug }}
    owner=root
    group=root
    mode=0755

However, the destination filename ends up with:

-rw-r--r-- 1 root root  143 Aug  5 23:10 apc.ini?
-rw-r--r-- 1 root root  143 Aug  5 23:10 xdebug-options.ini?

It adds the question mark due to including the line break in the filename. Previously all these tasks used to work. I believe I have other issues due to the tasks being structured this way. Is this a breaking change?

According to the code format guide, it suggested that long tasks be broken into multiple lines like this for better readability. It would be a pain to have a one-liner for every task. 

Should this be reported as a bug since its a regression of behavior?

Michael DeHaan

unread,
Aug 5, 2014, 7:37:02 PM8/5/14
to ansible...@googlegroups.com
Hi Patrick,

We've already had reports of these actually (very very recently) and fixed them and added tests to cover these cases.

We're dropping Ansible 1.7 really really soon (this week) and these will be included as fixes.

Stay tuned or feel free to test against the devel branch now if you like.

Thank you!

--Michael


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/88415314-1980-4d28-98fc-9d83067b5047%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages