I might recommend using 'var' instead of 'msg' in debug.  The problem is
likely that the output contains quotes and is breaking the quoting.

Something like:

- debug: var=docker_build.stdout


On Mon, Mar 23, 2015 at 9:13 AM, Mike S <[email protected]> wrote:

> Hi all,
>
> I've detailed this issue here
> https://github.com/ansible/ansible/issues/10519
>
> To summarise, this was my task,
>
> - name: Build base image
>   shell: docker build -t {{docker_image_namespace}}/trusty-base 
> {{docker_yard_dir}}/base
>   register: docker_build
>
> - debug: msg="{{ docker_build.stdout }}"
>
>
> and the failure,
>
> TASK: [docker-base | debug msg="{{ docker_build.stdout }}"] *******
> fatal: [10.22.22.22] => A variable inserted a new parameter into the module 
> args. Be sure to quote variables if they contain equal signs (for example: 
> "{{var}}").
>
> FATAL: all hosts have already failed -- aborting
>
>
> I've only been able to get this to work as - debug:
> var=docker_build.stdout, however, this does not print STDOUT, but rather
> shows the var contents, including '\n' chars in a really long string.
>
> Any thoughts on how I can get this sorted?
>
> Any suggestions on getting these images built as an async. job as well?
>
>
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/69f2803f-76c8-492a-817e-f79d60148446%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/69f2803f-76c8-492a-817e-f79d60148446%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
@sivel
sivel.net

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v9sGEKK%2Bjro5HajDQK3Gv3QcTjVBNwDbpGdP4exJNCquA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to