Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_send.pyo

�
�Udac@`sddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
Z
ddlZddlm
Z
dd
lmZmZmZddlmZy:ddlmZddlmZddlmZeZWnek
r�eZnXd�Zedkre�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys
---
module: tower_send
author: "John Westcott IV (@john-westcott-iv)"
version_added: "2.8"
short_description: Send assets to Ansible Tower.
description:
    - Send assets to Ansible Tower. See
      U(https://www.ansible.com/tower) for an overview.
options:
    assets:
      description:
        - The assets to import.
        - This can be the output of tower_receive or loaded from a file
      required: False
    files:
      description:
        - List of files to import.
      required: False
      default: []
    prevent:
      description:
        - A list of asset types to prevent import for
      required: false
      default: []
    password_management:
      description:
        - The password management option to use.
        - The prompt option is not supported.
      required: false
      default: 'default'
      choices: ["default", "random"]

notes:
  - One of assets or files needs to be passed in

requirements:
  - "ansible-tower-cli >= 3.3.0"
  - six.moves.StringIO
  - sys

extends_documentation_fragment: tower
s�
- name: Import all tower assets
  tower_send:
    assets: "{{ export_output.assets }}"
    tower_config_file: "~/tower_cli.cfg"
s�
output:
    description: The import messages
    returned: success, fail
    type: list
    sample: [ 'Message 1', 'Message 2' ]
N(tStringIO(tTowerModulettower_auth_configt
HAS_TOWER_CLI(tmkstemp(tSender(t
TowerCLIError(tsettingscC`stdtdt�dtdtdgdd�dtdtdgdd�dtdtddd	dd
g��}td|dt�}ts�|jd
d�nts�|jd
d�n|jjd�}|jjd�}|jjd�}|jjd�}tdtd
ddd�}|rA|rAd|d
<|j|�nd}|r�t	dddddd�\}}t
|d��}	|	j|�WdQX|j|�nt
|�}
t}tj|
��(z�y�tdt�}tj}
t�t_}y|j|||�Wn)tk
r5}|j||g|�nX|jdkr_t}d|j|d
<n|jdkr{t|d<nWn&tk
r�}|j|d
<t}nXWd|dk	r�tj|�n|j�jd�|d<|
t_XWdQX|r|j|�n
|j|�dS(Ntassetstrequiredtfilestdefaultttypetlisttpreventtpassword_managementtchoicestrandomt
argument_spectsupports_check_modetmsgs*ansible-tower-cli required for this modules1ansible-tower-cli version does not support exporttchangedttoutputs!Assets or files must be specifiedtprefixtsuffixtdirtwtno_colorisTransfer Failed with %d errorss
( tdicttFalseR	Rt	fail_jsontTOWER_CLI_HAS_EXPORTtparamstgettNoneRtopentwritetappendR
Rtruntime_valuesR
tsyststdoutRtsendt	TypeErrorterror_messagestTruetchanged_messagesRtmessagetostremovetgetvaluetsplitt	exit_json(RtmoduleRRRRtresulttpaththandletft
tower_authtfailedtsendert
old_stdouttcaptured_stdoutte((s_/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_send.pytmain]sl$	
!	
t__main__( t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNR8R0tansible.module_utils.six.movesRt"ansible.module_utils.ansible_towerR	R
RttempfileRttower_cli.cli.transfer.sendR
ttower_cli.utils.exceptionsRttower_cli.confRR5R(tImportErrorR&RHt__name__(((s_/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_send.pyt<module>s,


-


	I

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