I have a list list_info = ["config1", "config2"] and I would like to transform to a dict which incremente value by one for each item and starting for a number like 100. To have a dict like that :
list_info is a variable define before with set_fact
- name: Print
vars:
start: 100
set_fact:
dict_info: "{{ dict(list_info|zip(_serial)) }}"
vars:
_len: "{{ list_info|length }}"
_serial: "{{ range(start, start + _len|int) }}"
The task includes an option with an undefined variable. The error was: 'start' is undefined\n\nThe error appears to be in