ansible 1.6.9 file contents eats spaces

44 views
Skip to first unread message

anatoly techtonik

unread,
Jul 25, 2014, 12:35:27 PM7/25/14
to ansible...@googlegroups.com
---
- hosts: localhost
  sudo: yes
  gather_facts: no
  tasks:
    - copy: content="1 2  3   4    " dest=/contents

This playbook reduces all spaces to one:

localhost$ ansible-playbook contents.yml

PLAY [localhost] **************************************************************

TASK: [copy content="1 2  3   4    " dest=/contents] **************************
ok: [localhost]

PLAY RECAP ********************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=0

localhost$ cat /contents
1 2 3 4 localhost$

Why? And how to stop that?

James Cammarata

unread,
Jul 25, 2014, 2:24:18 PM7/25/14
to ansible...@googlegroups.com
Hi Anatoly, I believe I have a fix for this, if you'd like to test it out (pushed to devel now):


This corrects the issue for me based on your sample above.


--
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/b12ff89c-b1cd-4d00-be8d-5bfe54a1b10e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

anatoly techtonik

unread,
Jul 26, 2014, 1:30:48 AM7/26/14
to ansible...@googlegroups.com
Confirm that 1.6.10 fixes that. I wasted a lot of time before writing
to the list. =)

From
https://github.com/ansible/ansible/blob/v1.6.10/CHANGELOG.md#1610-and-the-cradle-will-rock---jul-25-2014
* Improved unicode handling when splitting args

It is a regression in 1.6.9.
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/UADJhT4h1cw/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAMFyvFgVJP4Vum-JAXDAeGRayLUhoQuN4c1o4Guxc%2BfXx0NUEA%40mail.gmail.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
anatoly t.

anatoly techtonik

unread,
Jul 26, 2014, 1:43:59 AM7/26/14
to ansible...@googlegroups.com
https://github.com/ansible/ansible/pull/8300 - can't wait to see fix
landed in Debian.

Actualy, my system already updated to 1.6.10. I don't how did that happen
considering that https://packages.debian.org/search?keywords=ansible still
lists 1.6.9
--
anatoly t.
Reply all
Reply to author
Forward
0 new messages