??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó àUdac@`sîddlmZmZmZeZdZdZdZddl Z ddl Z ddl m Z m Z ddlmZddlmZdd lmZmZmZdd lmZd dd „ƒYZd dd„ƒYZdefd„ƒYZdS(i(tabsolute_importtdivisiontprint_functions` lookup: csvfile author: Jan-Piet Mens (@jpmens) version_added: "1.5" short_description: read data from a TSV or CSV file description: - 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. options: col: description: column to return (0 index). default: "1" default: description: what to return if the value is not found in the file. default: '' delimiter: description: field separator in the file, for a tab you can specify "TAB" or "t". default: TAB file: description: name of the CSV/TSV file to open. default: ansible.csv encoding: description: Encoding (character set) of the used CSV file. default: utf-8 version_added: "2.1" notes: - The default is for TSV files (tab delimited) not CSV (comma delimited) ... yes the name is misleading. s· - 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') }}" - name: Define Values From CSV File set_fact: loop_ip: "{{ lookup('csvfile', bgp_neighbor_ip +' file=bgp_neighbors.csv delimiter=, col=1') }}" int_ip: "{{ lookup('csvfile', bgp_neighbor_ip +' file=bgp_neighbors.csv delimiter=, col=2') }}" int_mask: "{{ lookup('csvfile', bgp_neighbor_ip +' file=bgp_neighbors.csv delimiter=, col=3') }}" int_name: "{{ lookup('csvfile', bgp_neighbor_ip +' file=bgp_neighbors.csv delimiter=, col=4') }}" local_as: "{{ lookup('csvfile', bgp_neighbor_ip +' file=bgp_neighbors.csv delimiter=, col=5') }}" neighbor_as: "{{ lookup('csvfile', bgp_neighbor_ip +' file=bgp_neighbors.csv delimiter=, col=6') }}" neigh_int_ip: "{{ lookup('csvfile', bgp_neighbor_ip +' file=bgp_neighbors.csv delimiter=, col=7') }}" delegate_to: localhost sA _raw: description: - value(s) stored in file column N(t AnsibleErrortAnsibleAssertionError(t LookupBase(tPY2(tto_bytest to_nativetto_text(tMutableSequencet CSVRecodercB`s2eZdZdd„Zd„Zd„ZeZRS(sP Iterator that reads an encoded stream and reencodes the input to UTF-8 sutf-8cC`stj|ƒ|ƒ|_dS(N(tcodecst getreadertreader(tselftftencoding((sB/usr/lib/python2.7/site-packages/ansible/plugins/lookup/csvfile.pyt__init__KscC`s|S(N((R((sB/usr/lib/python2.7/site-packages/ansible/plugins/lookup/csvfile.pyt__iter__NscC`st|jƒjdƒS(Nsutf-8(tnextRtencode(R((sB/usr/lib/python2.7/site-packages/ansible/plugins/lookup/csvfile.pyt__next__Qs(t__name__t __module__t__doc__RRRR(((sB/usr/lib/python2.7/site-packages/ansible/plugins/lookup/csvfile.pyR Gs    t CSVReadercB`s8eZdZejdd„Zd„ZeZd„ZRS(su A CSV reader which will iterate over lines in the CSV file "f", which is encoded in the given encoding. sutf-8cK`sLtrt||ƒ}ntj|ƒ|ƒ}tj|d|||_dS(Ntdialect(RR R R tcsvR(RRRRtkwds((sB/usr/lib/python2.7/site-packages/ansible/plugins/lookup/csvfile.pyR]scC`s,t|jƒ}g|D]}t|ƒ^qS(N(RRR (Rtrowts((sB/usr/lib/python2.7/site-packages/ansible/plugins/lookup/csvfile.pyRescC`s|S(N((R((sB/usr/lib/python2.7/site-packages/ansible/plugins/lookup/csvfile.pyRks( RRRRtexcelRRRR(((sB/usr/lib/python2.7/site-packages/ansible/plugins/lookup/csvfile.pyRWs  t LookupModulecB`s&eZdddd„Zdd„ZRS(sutf-8ic C`sœylt|dƒ}t|dt|ƒd|ƒ}x8|D]0} t| ƒr7| d|kr7| t|ƒSq7WWn)tk r—} tdt| ƒƒ‚nX|S(Ntrbt delimiterRis csvfile: %s(topenRRtlentintt ExceptionR( RtfilenametkeyR#RtdflttcolRtcreaderRte((sB/usr/lib/python2.7/site-packages/ansible/plugins/lookup/csvfile.pytread_csvqs c K`s‰g}x||D]t}|jƒ}|d}idd6dd6dd6dd6d d 6}yWxP|d D]D} | jd ƒ\} } | |krštd | ƒ‚n| || s