Hi, 

I have input file that include the following parameter. 

*internal_network_reverse*: 0.10

 

and a jinja template file that include the following line 

zone "{{ *internal_network_reverse *| default ('168.192') }}.in-addr.arpa"

 

 

The *required output* I wish to get is zone "*0.10*.in-addr.arpa"

*Instead*, I’m getting this zone "*0.1*.in-addr.arpa"  ; *Without the zero *

 

I have tried using string and float but still I’m not getting the required 
result.

zone "{{ internal_network_reverse | *string *| default ('168.192') 
}}.in-addr.arpa"

zone "{{ internal_network_reverse | *float *| default ('168.192') 
}}.in-addr.arpa"

 

Any suggestions??

*Please note that I don’t want to add “ “ in my input file - this way it is 
working but I need to avoid the use of “ “ 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7d07272f-c396-465d-931c-381c2a4e92a7n%40googlegroups.com.

Reply via email to