- set_fact: locked_domains="{{ locked_domains + item.ID }}"
when: {{item.state}} == "some_cond"
with_items: "{{ domains.json }}"
where domains.json is an array of objects
I get the following error
fatal: [localhost] => Failed to template locked_domains="{{ locked_domains + item.ID }}": an unexpected type error occurred. Error was unsupported operand type(s) for +: 'NoneType' and 'str'
FATAL: all hosts have already failed -- aborting
Please advise
Thanks
Elad