I'm new at Ansible and YAML syntax and I'm facing a simple issue: how to iterate over two lists, with the same index?
Something like that:
int[] listOne;
int[] listTwo;
--- Attribute some values to the lists ----
for(int i = 0; i < 10; i++){
int result = listOne[i] + listTwo[i];
}
In my case, I'm trying to attribute some values to route53 module, and they are in different lists.
Is there anyway to do it? I just found loops that iterate over a single list or nested lists.