Return dictionary keys
Using |keys filter
Here is an example of using the |keys filter to get a list of property names from a dictionary.
-
start: set: person: name_first: Kina name_last: Halpue email: kina.halpue@cerb.example return: keys@csv: {{person|keys|join(', ')}}
-
__return: keys: - name_first - name_last - email