The csvfile lookup reads the contents of a file in CSV (comma-separated value) format. The lookup looks for the row where the first column matches keyname, and returns the value in the second column, unless a different column is specified.

-name:Match 'Li' on the first column, return the second column (0 based index)debug:msg="The atomic number of Lithium is {{lookup('csvfile','Li file=elements.csv delimiter=,')}}"-name:msg="Match 'Li' on the first column, but return the 3rd column (columns start counting after the match)"debug:msg="The atomic mass of Lithium is {{lookup('csvfile','Li file=elements.csv delimiter=, col=2')}}"