On 22.07.2019 09:07, hauke wrote:
that's interesting. It really is an integer, but how can I achieve it to
print it like that?

When using the variables Ansible/Jinja will mostly do the right thing.

Screen output is just for informational purposes to the user and is heavy formatted by the callback plugin[1].
The default callback plugin is call default and have quotes everywhere.
But there are many[2] to choose from and some is better than other to print information on screen.

Personally I use the debug[3] one since it gives a more human readable output and it's very verbose so any error will have all the information I need.


[1] https://docs.ansible.com/ansible/2.8/plugins/callback.html
[2] https://docs.ansible.com/ansible/2.8/plugins/callback.html#plugin-list
[3] https://docs.ansible.com/ansible/2.8/plugins/callback/debug.html


--
Kai Stian Olstad

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bc0eeb5d45d8f258b24451b50bc1544a%40olstad.com.

Reply via email to