FAQ
---
- 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?

--
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-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupansible-project @
postedJul 25, '14 at 4:35p
activeJul 26, '14 at 5:43a
posts4
users2

People

Translate

site design / logo © 2022 Grokbase