Hi everyone,
(It's more a jinja quesion but...)
Is there a way to convert a int to an alphabet letter (1 -> a, 2 -> b...)
More aesthetic than (with a filter and less useless variables):
letters: 'abcdefghijklmnopqrstuvwxyz'
index: "{{ groups['group1'].index(inventory_hostname) }}"
index_letter: "{{ letters[index] }}"
Thanks
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6ae3c9ee-c197-487f-89d6-9673143952f6o%40googlegroups.com.