I realize strings are only allowed currently it seems, but I am wondering if there is another way to accomplish the same thing.
This is for file creation, so I realize I can loop thru with with_items, but then I can only loop on 1 list. With the ability to have lists or dictionaries in var files, I think the options become significantly greater, without any more complication of current abilities.
This is all to create start with a single file, on a single box, but to have many loops, with potential for more then 1 or 2 layers.
ERROR: must be stored as dictionary/hash: <type ‘str’>
" realize strings are only allowed currently it seems, "
This is not correct.
Variables files, such as group_vars/groupname, host_vars/hostname, anything loaded with vars_files or “include_vars” can be YAML or JSON, we prefer YAML, and it can be structured and typed.