Hi.
I tried out blocks in devel today, and found a small oddity.
- block:
- debug: var=x
- debug: var=y
vars:
x: 23
y: 42
The above works as expected, but:
- block:
- debug: var=x
- debug: var=y
vars:
- x: 23
- y: 42
…results in:
[ERROR]: Unexpected Exception: dictionary update sequence element #0 has length 1; 2 is required
The latter is what I tried first, because that's how setting vars on a
play works, but it looks like vars are handled differently for a block.
This may be intended behaviour (it's not documented though), but at the
very least I think the error should be handled more gracefully.
-- Abhijit