??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 178
ó
àUdac @` sŽ d d l m Z m Z m Z e Z d Z d Z d Z d d l m
Z
d d l m Z d d l
m Z d d l m Z d e f d
„ ƒ YZ d S( i ( t absolute_importt divisiont print_functionsK
lookup: together
author: Bradley Young
version_added: '1.3'
short_description: merges lists into synchronized list
description:
- Creates a list with the iterated elements of the supplied lists
- "To clarify with an example, [ 'a', 'b' ] and [ 1, 2 ] turn into [ ('a',1), ('b', 2) ]"
- This is basically the same as the 'zip_longest' filter and Python function
- Any 'unbalanced' elements will be substituted with 'None'
options:
_terms:
description: list of lists to merge
required: True
s½
- name: item.0 returns from the 'a' list, item.1 returns from the '1' list
debug:
msg: "{{ item.0 }} and {{ item.1 }}"
with_together:
- ['a', 'b', 'c', 'd']
- [1, 2, 3, 4]
s-
_list:
description: synchronized list
( t AnsibleError( t zip_longest( t
LookupBase( t listify_lookup_plugin_termst LookupModulec B` s# e Z d Z d „ Z d d „ Z RS( s±
Transpose a list of arrays:
[1, 2, 3], [4, 5, 6] -> [1, 4], [2, 5], [3, 6]
Replace any empty spots in 2nd array with None:
[1, 2], [3] -> [1, 3], [2, None]
c C` sF g } x9 | D]1 } t | d | j d | j ƒ} | j | ƒ q
W| S( Nt templart loader( R t _templart _loadert append( t selft termst resultst xt intermediate( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/together.pyt _lookup_variables2 s
c K` sc | j | ƒ } | } t | ƒ d k r7 t d ƒ ‚ n g t d d | Œ D] } | j | ƒ ^ qJ S( Ni s8 with_together requires at least one element in each listt fillvalue( R t lenR R t Nonet _flatten( R
R t variablest kwargst my_listR ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/together.pyt run9 s
N( t __name__t
__module__t __doc__R R R ( ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/together.pyR * s N( t
__future__R R R t typet
__metaclass__t
DOCUMENTATIONt EXAMPLESt RETURNt ansible.errorsR t ansible.module_utils.six.movesR t ansible.plugins.lookupR t ansible.utils.listifyR R ( ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/lookup/together.pyt s