Anons79 Mini Shell

Directory : /proc/self/root/lib/python2.7/site-packages/ansible/playbook/
Upload File :
Current File : //proc/self/root/lib/python2.7/site-packages/ansible/playbook/helpers.pyc

�
�Udac@`sddlmZmZmZeZddlZddlmZ	ddl
mZmZm
Z
mZddlmZddlmZddlmZddlmZdd	lmZe�Zeeeeeed
�Zeeeeeed�Zeeeed�ZdS(
i(tabsolute_importtdivisiontprint_functionN(t	constants(tAnsibleParserErrortAnsibleUndefinedVariabletAnsibleFileNotFoundtAnsibleAssertionError(t	to_native(tstring_types(tModuleArgsParser(tAnsibleCollectionLoader(tDisplaycC`seddlm}t|ttd�f�sJtd|t|�f��ng}	|rattt	|���}
x�|
D]�}||}g}
xl|dk	r�|j
|�r�|
j|�|d7}t|
d�y||}Wq�t
k
r�d}q�Xq�Wx]|
|fD]O}|r|	j|j|d|d|d|d|d	|d
|d|��qqWquWn|	S(
s�
    Given a list of mixed task/block data (parsed from YAML),
    return a list of Block() objects, where implicit blocks
    are created for each bare Task.
    i(tBlocks%%s should be a list or None but is %sitplaytparent_blocktrolettask_includetuse_handlerstvariable_managertloaderN(tansible.playbook.blockR
t
isinstancetlistttypetNoneRtitertrangetlentis_blocktappendtnextt
IndexErrortload(tdsRRRRRRRR
t
block_listtcounttitblock_dstimplicit_blockstb((s</usr/lib/python2.7/site-packages/ansible/playbook/helpers.pytload_list_of_blocks"s<





c+C`s�	ddlm}ddlm}	ddlm}
ddlm}ddlm	}ddl
m}
ddlm
}t|t�s�td	|t|�f��ng}x�|D]�}t|t�s�td
|t|�f��nd|kr4|j|d|d
|d|d|d|d|d|�}|j|�q�t|�}y|jdt�\}}}Wn@tk
r�}|jr��ntt|�d|d|��nX|tjkr�|r�|
}n|}|j|d|d|dd0d|d|�}|jd|d|�}|d|d|�}|tjkr8t }n�|tj!krPt}ns|j"d0k	r~t#j$ddd�|j"}nEtj%p�|r�tj&p�|j'|j(d�o�|j)�o�|j*}|r�|j*d0k	r|tj!kr�tdd|��qtdd|��nt|_+|}d0}t }d}|rAd}nx�|d0k	r�t||�sn|j,}qDny+t-j.j/|j0|j(j1d���}WnPt2k
r�}|j+s�td |j(j1d�d|d!td|��n�nX|d0kr|}n*t-j.j3|�s+t-j.j4||�}n|j0|j(d�} |j5r�t-j.j4|j5j6||�}!|j7|!|| �}"n|j7|j8�|| �}"t-j.j9|"�r�t}PqD|j,}qDW|s\y|j0|j(d�} Wn<t2k
r"}td"|j(dd|d!td|��nX|j5rJ|j7|j5j6|| �}"q\|j:| �}"nyk|j;|"�}#|#d0kr�t#j<d#|"�w�n$t|#t�s�td$d|#��nt#j=d%|"�Wnnt>k
r7|tj?ks|j"stj%stj&r
|r
�nt#j$d&|"dd�|j|�q�nX|j@d't�}$||$_,tA|#d|d
d0d|$d|d|d|d|�}%|$jBjCd(g�}&t|&tD�r�|&jEd)�}&ntF|&�dkr5|tjGkr�td*��ntF|$jH�dkrtd+d|d!t��nt#j$d,dd�n
|$jH}&x/|%D]'}'ttI|'jH�jJ|&��|'_HqFW|r�x.|%D]}'|jK|'jL�q~Wq�|jK|%�q�	t |_M|j|�q�|tjNkr#	|j|d|d|dd0d|d|�}(t }|tjOkrt}n.|(j"d0k	rLt#j$d-dd�|(j"}n|r	|(j*d0k	r�|tjOkr�td.d|��q�td/d|��nt|(_+|jd|d|(�}|d|d|�}|j0|(jP�|(_P|(jQd|d|�\})}*|jK|)�q�	|j|(�q�|rY	|	j|d|d|d|d|d|�}n-|
j|d|d|d|d|d|�}|j|�q�W|S(1sw
    Given a list of task datastructures (parsed from YAML),
    return a list of Task() or TaskInclude() objects.
    i(R
(tHandler(tTask(tTaskInclude(tIncludeRole(tHandlerTaskInclude(tTemplars)The ds (%s) should be a list but was a %ss)The ds (%s) should be a dict but was a %stblockRRRRRRRtskip_action_validationtobjtorig_excttaskt	variablesszThe use of 'static' has been deprecated. Use 'import_tasks' for static inclusion, or 'include_tasks' for dynamic inclusiontversions2.12t_raw_paramssZYou cannot use loops on 'import_tasks' statements. You should use 'include_tasks' instead.s1You cannot use 'static' on an include with a loopttasksthandlerss�Error when evaluating variable in dynamic parent include path: %s. When using static imports, the parent dynamic include cannot utilize host facts or variables from inventorytsuppress_extended_errors'Error when evaluating variable in import path: %s.

When using static imports, ensure that any variables used in their names are defined in vars/vars_files
or extra-vars passed in from the command line. Static imports cannot use variables from facts or inventory
sources like group or host vars.s,file %s is empty and had no tasks to includes0included task files must contain a list of taskssstatically imported: %ss�Included file '%s' not found, however since this include is not explicitly marked as 'static: yes', we will try and include it dynamically later. In the future, this will be an error unless 'static: no' is used on the include task. If you do not want missing includes to be considered dynamic, use 'static: yes' on the include or set the global ansible.cfg options to make all includes static for tasks and/or handlerstexclude_parentttagst,sBYou cannot specify "tags" inline to the task, it is a task keywords�Include tasks should not specify tags in more than one way (both via args and directly on the task). Mixing styles in which tags are specified is prohibited for whole import hierarchy, not only for single import statementsoYou should not specify tags in the include parameters. All tags should be specified using the task-level options�The use of 'static' for 'include_role' has been deprecated. Use 'import_role' for static inclusion, or 'include_role' for dynamic inclusionsXYou cannot use loops on 'import_role' statements. You should use 'include_role' instead.s6You cannot use 'static' on an include_role with a loopN(RRR
tansible.playbook.handlerR*tansible.playbook.taskR+tansible.playbook.task_includeR,tansible.playbook.role_includeR-t%ansible.playbook.handler_task_includeR.tansible.templateR/RRRRtdictR!RR
tparsetTrueRt_objRtCt _ACTION_ALL_INCLUDE_IMPORT_TASKSRtget_varst_ACTION_INCLUDE_TASKStFalset_ACTION_IMPORT_TASKStstatictdisplayt
deprecatedtDEFAULT_TASK_INCLUDES_STATICtDEFAULT_HANDLER_INCLUDES_STATICtis_templatetargstall_parents_statictlooptstatically_loadedt_parenttostpathtdirnamettemplatetgetRtisabstjoint_rolet
_role_pathtpath_dwim_relativetget_basedirtexistst	path_dwimtload_from_filetwarningtvvRt_ACTION_INCLUDEtcopyR)tvarstpopR	tsplitRt'_ACTION_ALL_PROPER_INCLUDE_IMPORT_TASKSR<tsettuniontextendR0t	is_statict'_ACTION_ALL_PROPER_INCLUDE_IMPORT_ROLESt_ACTION_IMPORT_ROLEt
_role_nametget_block_list(+R"RR0RRRRRR
R*R+R,R-R.R/t	task_listttask_dstttargs_parsertactionRTtdelegate_totet
include_classtall_varsttemplarRrtparent_includetcumulative_pathtfoundtsubdirtparent_include_dirtinclude_targettnew_basedirtinclude_filetdatatti_copytincluded_blocksR<R(tirtblockst_((s</usr/lib/python2.7/site-packages/ansible/playbook/helpers.pytload_list_of_tasksUs~
		"					-			+			

	
	
		


%
				0-c

C`s�ddlm}t|t�s>td|t|�f��ng}xH|D]@}|j|d|d|d|d|d|�}	|j|	�qKW|S(	s�
    Loads and returns a list of RoleInclude objects from the ds list of role definitions
    :param ds: list of roles to load
    :param play: calling Play object
    :param current_role_path: path of the owning role, if any
    :param variable_manager: varmgr to use for templating
    :param loader: loader to use for DS parsing/services
    :param collection_search_list: list of collections to search for unqualified role names
    :return:
    i(tRoleIncludes%ds (%s) should be a list but was a %sRtcurrent_role_pathRRtcollection_list(tansible.playbook.role.includeR�RRRRR!R(
R"RR�RRtcollection_search_listR�trolestrole_defR%((s</usr/lib/python2.7/site-packages/ansible/playbook/helpers.pytload_list_of_rolesss
(t
__future__RRRRt
__metaclass__RYtansibleRRHtansible.errorsRRRRtansible.module_utils._textRtansible.module_utils.sixR	tansible.parsing.mod_argsR
tansible.utils.collection_loaderRtansible.utils.displayRRORRLR)R�R�(((s</usr/lib/python2.7/site-packages/ansible/playbook/helpers.pyt<module>s"	3�

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]