Not pretty, but you could try this
- debug:
msg: msg: "./client -a 8101 -h localhost -u admin -p admin
'fabric:container-create-child --profile {{ esb_name }}_CAML_PRFL {{
fuseesbdomhosts[item | int] }} {{ esb_name }}_ESB_{% if item | int > 9
%}{{ item }}{% else %}0{{ item }}{% endif %}'"
with_sequence: start=0 end={{ groups['fuseesbdomhosts'] | length -1 }}
--
Kai Stian Olstad