Re: [ansible-project] Output of script & newline

2015-05-08 Thread Matt Martz
Use the |trim jinja2 filter to strip whitespace off of the ends. On Fri, May 8, 2015 at 4:55 PM, John Oliver wrote: > ansible 1.9.0.1 > > - name: Get java version > script: /tmp/javaver.sh > register: java_ver > > - name: Touch test file > copy: dest="/tmp/{{ java_ver.stdout }}"

[ansible-project] Output of script & newline

2015-05-08 Thread John Oliver
ansible 1.9.0.1 - name: Get java version script: /tmp/javaver.sh register: java_ver - name: Touch test file copy: dest="/tmp/{{ java_ver.stdout }}" content="test" TASK: [Show output from installer] ok: [flamingo] => { "