Is there a way to reference a particular element in a yaml array?

Viewed 2181

Is there a way to reference a particular element in a yaml array? For example if I have this bit of yaml:

node_list:
  - one
  - two
  - three

Can I do something like this:

first_node: node_list[0]
1 Answers
Related