I want to get the values from the properties that are given in item.
Hardcoded I would use hostname.stdout - but this property name is not known up front, so it is very useful that it is available in the item property, but how can i dynamically get the item value and use that to read the property ? trying to use the backticks with item but that selects all 'items' as an array.
Thanks, I was not sure how to formulate the question.
To rephrase it: I do not know the property name hostname.stdout upfront (it could be anything like example.stdout), but item contains the property name - the value of itemdescribes the property name I want to read.
I would like to get rid of the surrounding arrays if possible. The "all items completed" may also not be the best thing to filter on, as I don't know what it produces when it fails at a step (yet to test). Perhaps the last element in the task array, as it will always be the last element that contains the end results of the tasks it executed (this comes from an ansible playbook btw).
@Steve-Mcl Thanks, although untested, by the looks of it this might work too, I might resort to a function node if this doesnt work out.