Whitespace in Value for INI_FILE

I have a problem when using the ini_file module as follows:

Try this:

`

  • name: Create ‘config.ini’ to include necessary values
    ini_file: >
    dest=./testconfig.ini
    section=“{{ item.section }}”
    option=“{{ item.option }}”
    value=“{{ item.value }}”
    with_items:
  • { section: ‘General’, option: ‘test1’, value: ‘value2’ }
  • { section: ‘General2’, option: ‘test2’, value: 2 }
  • { section: ‘General3’, option: ‘test3’, value: ‘This is a test’ }

`