Hmm.
Well, with_items should take a list and not a hash table. I’m not sure why it used to work, in that case, because the value of item in your example wouldn’t be correct. (I am thinking it might not have worked, actually!)
Try changing sysctlentries to:
sysctlentries:
- { skey: ‘some_key’, value: ‘value’ }
And then of course do:
{{ item.skey }} and {{ item.value }}
I should also say in 1.2, you can leave out all the $goop in many places, including the new conditional “when” as well as “with_items”.
So the following is also fine syntax, and we generally try to not use $ in 1.2 playbooks (though they work for backwards compatibility)
with_items: sysctlentries