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_team.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zdd
l	m
Z
mZmZy/ddl
Z
ddljZddlmZWnek
r�nXd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: tower_team
author: "Wayne Witzel III (@wwitzel3)"
version_added: "2.3"
short_description: create, update, or destroy Ansible Tower team.
description:
    - Create, update, or destroy Ansible Tower teams. See
      U(https://www.ansible.com/tower) for an overview.
options:
    name:
      description:
        - Name to use for the team.
      required: True
    organization:
      description:
        - Organization the team should be made a member of.
      required: True
    state:
      description:
        - Desired state of the resource.
      choices: ["present", "absent"]
      default: "present"
extends_documentation_fragment: tower
s�
- name: Create tower team
  tower_team:
    name: Team Name
    description: Team Description
    organization: test-org
    state: present
    tower_config_file: "~/tower_cli.cfg"
(tTowerModulettower_auth_configttower_check_modeN(tsettingsc

C`s,tdtdt�dt�dtdt�dtdddgd	d��}td
|dt�}|jjd�}|jjd�}|jjd�}|jjd�}i|d6|d6}t|�}tj|��4t|�t	j
d�}y�t	j
d�}	|	jd|�}
|dkrZ|jd|d|
d
d|dt�}|d
|d
<n+|dkr�|jd|d|
d
�}nWn~t
jk
r�}|jddj|�dt�nJt
jt
jt
jt
jfk
r}|jddj|�dt�nXWdQX|d|d<|j|�dS(Ntnametrequiredtdescriptiontorganizationtstatetchoicestpresenttabsenttdefaultt
argument_spectsupports_check_modetteamtidtcreate_on_missingtmsgs2Failed to update team, organization not found: {0}tchangedsFailed to update team: {0}(tdicttTrueRtparamstgetR	Rtruntime_valuesR
t	tower_clitget_resourcetmodifytdeletetexctNotFoundt	fail_jsontformattFalsetConnectionErrort
BadRequestt	AuthErrort	exit_json(
RtmoduleRRRRtjson_outputt
tower_authRtorg_restorgtresulttexcinfo((s_/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_team.pytmain@s<	
#"')t__main__(t
__future__RRRttypet
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLESt"ansible.module_utils.ansible_towerRR	R
R!ttower_cli.exceptionst
exceptionsR%ttower_cli.confRtImportErrorR5t__name__(((s_/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_team.pyt<module>s 



	*

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