SP
Size: a a a
PP
TG
TG
TG
A
АП
TG
АП
TG
TG
АП
TG
АП
SP
SP
SM
{как сделать вложенные циклы? Пробовал так
"env1": {
"service1": {
"host": "test2",
"port": 1234
},
"service2": {
"host": "test1",
"port": 4321
}
},
"env2": {
"service1": {
"host": "test2",
"port": 5678
},
"service2": {
"host": "test1",
"port": 8765
}
}
}
- debug:получаю FAILED! => {"msg": "'item' is undefined"}
msg: "{{ item[1].key }}"
with_dict: "{{ vault_dict }}"
with_dict: "{{ item[0] }}"
L
{как сделать вложенные циклы? Пробовал так
"env1": {
"service1": {
"host": "test2",
"port": 1234
},
"service2": {
"host": "test1",
"port": 4321
}
},
"env2": {
"service1": {
"host": "test2",
"port": 5678
},
"service2": {
"host": "test1",
"port": 8765
}
}
}
- debug:получаю FAILED! => {"msg": "'item' is undefined"}
msg: "{{ item[1].key }}"
with_dict: "{{ vault_dict }}"
with_dict: "{{ item[0] }}"