Accessing Complex Variable Data

Reffering to "Accessing Complex Variable Data"

First of all thank you for ansible :wink: , but now I have some questions

1.) It should be possible to use a list(array). Can someone give an example
for a somelist.yml ?

see below

2.) Must that file be mentioned in the vars_files section?

3.) Or am I going totally wrong?

For example:

---

- hosts: physical
  user: ansible
  sudo: yes

  vars_files:
    - somelist.yml

Somelist would define multiple list variables by name, as a YAML
dictionary of lists: