a )g @slddlmZmZmZeZdZdZdZddl m Z ddl m Z m Z ddlmZddlmZGd d d eZd S) )absolute_importdivisionprint_functionaf name: nested version_added: "1.1" short_description: composes a list with nested elements of other lists description: - Takes the input lists and returns a list with elements that are lists composed of the elements of the input lists options: _raw: description: - a set of lists required: True as - name: give users access to multiple databases community.mysql.mysql_user: name: "{{ item[0] }}" priv: "{{ item[1] }}.*:ALL" append_privs: yes password: "foo" with_nested: - [ 'alice', 'bob' ] - [ 'clientdb', 'employeedb', 'providerdb' ] # As with the case of 'with_items' above, you can use previously defined variables.: - name: here, 'users' contains the above list of employees community.mysql.mysql_user: name: "{{ item[0] }}" priv: "{{ item[1] }}.*:ALL" append_privs: yes password: "foo" with_nested: - "{{ users }}" - [ 'clientdb', 'employeedb', 'providerdb' ] zr _list: description: - A list composed of lists paring the elements of the input lists type: list )UndefinedError) AnsibleErrorAnsibleUndefinedVariable) LookupBase)listify_lookup_plugin_termsc@seZdZddZdddZdS) LookupModulec Csbg}|D]T}zt||jdd}Wn0tyP}ztd|WYd}~n d}~00||q|S)NT)ZtemplarZfail_on_undefinedzs