'^#? ?{{ item.option }} =' 
                  
                  
                     line: '{{ item.option }} = "{{ item.value }}"'
                  
                  
                   with_flattened:
                  
                  
                      - "{{ file_ini }}"
                  
                  
                  
                  
                  
                  variable:
                  
                  
                   file_ini:
                  
                  
                    - option: qq
                  
                  
                      value: "33;45"
                  
                  
                  
                  
                  
                  Ошибка: The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'option
                  
                  
                  Подскажите - как можно исправить
                  
                  
                
loop: '{{file_ini}}'
Тут не нужен flattened
Посмотри это, https://docs.ansible.com/ansible/latest/plugins/lookup/subelements.html
loop: {{ variable.file_ini }}
Обсуждают сегодня