I need something like (ansible inventory file):
[example] 127.0.0.1 timezone=\"Europe/Amsterdam\" locales=\"en_US\",\"nl_NL\"
However, ansi
With complex variables, it's best to define them in a host_vars file rather than in the inventory file, since host_vars files support YAML syntax.
Try creating a host_vars/127.0.0.1 file with the following content:
host_vars/127.0.0.1
timezone: Europe/Amsterdam locales: - en_US - nl_NL