i have good knowledge at programming langage, but there's something I can't make with Ansible filters and YAML syntax. Basically, I want to iterate over array/lists and make a comparison of each elements, like that in C language :
for (i=0;i<a;i++) {
for (j=0;j<b;j++) {
if (array1[i]==array2[j]) {
....
}
}
}
In my case, i'm trying to compare each attributes of two lists one by one.
Is there anyway to do it with Ansible?
Thanks in advance for your answers.