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_receive.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZmZm
Z
yJddlmZdd
lmZddlmZddlmZeZWnek
r�eZnXd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bysq
---
module: tower_receive
author: "John Westcott IV (@john-westcott-iv)"
version_added: "2.8"
short_description: Receive assets from Ansible Tower.
description:
    - Receive assets from Ansible Tower. See
      U(https://www.ansible.com/tower) for an overview.
options:
    all:
      description:
        - Export all assets
      type: bool
      default: 'False'
    organization:
      description:
        - List of organization names to export
      default: []
    user:
      description:
        - List of user names to export
      default: []
    team:
      description:
        - List of team names to export
      default: []
    credential_type:
      description:
        - List of credential type names to export
      default: []
    credential:
      description:
        - List of credential names to export
      default: []
    notification_template:
      description:
        - List of notification template names to export
      default: []
    inventory_script:
      description:
        - List of inventory script names to export
      default: []
    inventory:
      description:
        - List of inventory names to export
      default: []
    project:
      description:
        - List of project names to export
      default: []
    job_template:
      description:
        - List of job template names to export
      default: []
    workflow:
      description:
        - List of workflow names to export
      default: []

requirements:
  - "ansible-tower-cli >= 3.3.0"

notes:
  - Specifying a name of "all" for any asset type will export all items of that asset type.

extends_documentation_fragment: tower
sQ
- name: Export all tower assets
  tower_receive:
    all: True
    tower_config_file: "~/tower_cli.cfg"

- name: Export all inventories
  tower_receive:
    inventory:
      - all

- name: Export a job template named "My Template" and all Credentials
  tower_receive:
    job_template:
      - "My Template"
    credential:
      - all
sj
assets:
    description: The exported assets
    returned: success
    type: dict
    sample: [ {}, {} ]
(tTowerModulettower_auth_configt
HAS_TOWER_CLI(tReceiver(t
SEND_ORDER(t
TowerCLIError(tsettingsc	C`s8tdtdddt�dtdddg�dtdddg�dtdddg�d	tdddg�d
tdddg�dtdddg�dtdddg�d
tdddg�dtdddg�dtdddg�dtdddg��}td|dt�}ts3|jdd�ntsL|jdd�n|jjd�}i}x$tD]}|jj|�||<qkWtdddtdd�}t
|�}tj|��qy6t
�}|jd|d|�|d<|j|�Wn3tk
r-}|j|d<|jdd|�nXWdQXdS(Ntallttypetbooltdefaultt
credentialtlisttcredential_typet	inventorytinventory_scripttjob_templatetnotification_templatetorganizationtprojecttteamtusertworkflowt
argument_spectsupports_check_modetmsgs*ansible-tower-cli required for this modules1ansible-tower-cli version does not support exporttassetstchangedtmessagettasset_inputsReceive Failed(tdicttFalseRR
t	fail_jsontTOWER_CLI_HAS_EXPORTtparamstgetRtNoneR	Rtruntime_valuesRt
export_assetst	exit_jsonR
R$(	Rtmodulet
export_alltassets_to_exportt
asset_typetresultt
tower_authtreceiverte((sb/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_receive.pytmain}sF
		
t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNt"ansible.module_utils.ansible_towerRR	R
ttower_cli.cli.transfer.receiveRttower_cli.cli.transfer.commonRttower_cli.utils.exceptionsR
ttower_cli.confRtTrueR*tImportErrorR(R9t__name__(((sb/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_receive.pyt<module>s&


F


	.

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