Hi,

maybe try:
var_name: "01"

David


2014-09-03 12:39 GMT+02:00 Moti Heller <[email protected]>:

> Hi,
>
> I'm using the latest version of ansible.
> I have a variable defined in my group_vars file as follows:
>
> var_name: 01
>
> When using it in a task - {{var_name}}, the value is 1 instead of 01.
> I require the value to be as is without ansible trying to convert it to
> int.
> I tried using {{var_name | string}} - with no success.
>
> Is this a bug or is there away to force ansible to treat the variable
> value as is?
>
> Thanks,
> Moti.
>
> --
> 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/aca8f209-a59b-4e2b-a992-32923226ef3f%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/aca8f209-a59b-4e2b-a992-32923226ef3f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Karban
Specialista na správu linuxových serverů
www.karban.eu

-- 
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/CAOBFM97OdrVhgCSgPUY_R0Q34AFJfY7yjVy1EtGp_7-ESkSApQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to