If you have Ansible 2.7+ and jinja2 >= 2.10 you should be able to preserve the int types with the DEFAULT_JINJA2_NATIVE configuration https://docs.ansible.com/ansible/latest/reference_appendices/config.html#default-jinja2-native. It requires you to explicitly enable through either ansible.cfg or with an environment variable which is documented in that link.
Thanks Jordan -- 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/89de6674-d2a3-4005-b04e-da1b39357096%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
