I am using Ansible to create an Azure storage account which must have a max name size of 24 characters. I am looking at the Jinja truncate() method but the parameter passed to this method removes that number of characters rather than limiting the string to that number of characters.
Is there a different way of implementing a max length of string variable?
Do I need to combine truncate and length filters from Jinja?