leading zero omitted from variable

Hi

In group_vars I declared the following variables:

version:
stf: 2.6.0.0
build: 01.0

and later use it in tasks:

  • name: copy task example

copy: src=/var/rpms/functions-{{version.stf}}-{{version.build}}.x86_64.rpm dest=/tmp

When running the playbook I get this error:

msg: could not find src=/var/rpms/functions-2.6.0.0-1.0.x86_64.rpm

when first zero is omitted from build variable

How can I fix that ?

Thanks
Gregory

quote it

build: "01.0"

as a string it will not be" numerically simplified"

Thanks!

Its pretty strange, since this is the first thing I tried…and only now it worked for me…