My best advice is: use -vvvv for verbose output and see what parameters and 
variables ansible is using.. You will probably see something like this:

LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8

Perhaps you can change it in your ansible.cfg 
like https://docs.ansible.com/ansible/intro_configuration.html#module-lang

module_lang = en_US.UTF-8

Edgars



trešdiena, 2016. gada 27. aprīlis 08:15:31 UTC+2, Jürgen Haas rakstīja:
>
> My task calls this
>
> shell: free | awk '/Mem:/ {print $4}'
>
>
> and the output is empty. Up until Version 2.0.1.0 this correctly output 
> the 4th string of the second line from the free command.
>
> When changing that to
>
> shell: echo "free | awk '/Mem:/ {print $4}'" > /tmp/output
>
>
> we get
> free | awk '/Mem:/ {print }'
>
> in the file /tmp/out which demonstrates that the $4 is skipped for some 
> not obvious reason.
>
> Q1: Is this a new bug?
>
> Q2: Is there any other way to get the result from the "free" output?
>

-- 
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/798a04e6-b6db-4fb2-ba72-76208f675116%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to