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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zdd
l	Z	ddl
mZmZm
Z
y/dd
lZdd
ljZddlmZWnek
r�nXd
�Zedkr�e�nd
S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys
---
module: tower_group
author: "Wayne Witzel III (@wwitzel3)"
version_added: "2.3"
short_description: create, update, or destroy Ansible Tower group.
description:
    - Create, update, or destroy Ansible Tower groups. See
      U(https://www.ansible.com/tower) for an overview.
options:
    name:
      description:
        - The name to use for the group.
      required: True
    description:
      description:
        - The description to use for the group.
    inventory:
      description:
        - Inventory the group should be made a member of.
      required: True
    variables:
      description:
        - Variables to use for the group, use C(@) for a file.
    credential:
      description:
        - Credential to use for the group.
    source:
      description:
        - The source to use for this group.
      choices: ["manual", "file", "ec2", "rax", "vmware", "gce", "azure", "azure_rm", "openstack", "satellite6" , "cloudforms", "custom"]
    source_regions:
      description:
        - Regions for cloud provider.
    source_vars:
      description:
        - Override variables from source with variables from this field.
    instance_filters:
      description:
        - Comma-separated list of filter expressions for matching hosts.
    group_by:
      description:
        - Limit groups automatically created from inventory source.
    source_script:
      description:
        - Inventory script to be used when group type is C(custom).
    overwrite:
      description:
        - Delete child groups and hosts not found in source.
      type: bool
      default: 'no'
    overwrite_vars:
      description:
        - Override vars in child groups and hosts with those from external source.
    update_on_launch:
      description:
        - Refresh inventory data from its source each time a job is run.
      type: bool
      default: 'no'
    state:
      description:
        - Desired state of the resource.
      default: "present"
      choices: ["present", "absent"]
extends_documentation_fragment: tower
s�
- name: Add tower group
  tower_group:
    name: localhost
    description: "Local Host Group"
    inventory: "Local Inventory"
    state: present
    tower_config_file: "~/tower_cli.cfg"
N(tTowerModulettower_auth_configttower_check_mode(tsettingsc#C`s�tdtdt�dt�dtdt�dt�dt�dtdd	d
ddd
dddddddgdd	�dt�dt�dt�dt�dt�dtdddt�dt�dtdddt�d tdd!d"gdd!��}td#|d$t�}|jjd�}|jjd�}|jjd�}|jjd �}|jjd�}|r�|jd%�r�tj	j
|d&�}t|d'��}|j�}WdQXq�ni|d(6|d 6}	t
|�}
tj|
��wt|�tjd(�}y�|jj�}t|d)<||d<tjd�}
|
jd|�}|d*|d<|r�tjd�}|jd|�}|d*|d<n|d!kr�|j|�}|d*|	d*<n|d"kr�|j|�}nWn~tjk
r}|jd+d,j|�d-t�nJtjtjtjtjfk
r[}|jd+d.j|�d-t�nXWdQX|d-|	d-<|j|	�dS(/Ntnametrequiredtdescriptiont	inventoryt	variablest
credentialtsourcetchoicestmanualtfiletec2traxtvmwaretgcetazuretazure_rmt	openstackt
satellite6t
cloudformstcustomtdefaulttsource_regionstsource_varstinstance_filterstgroup_byt
source_scriptt	overwritettypetbooltoverwrite_varstupdate_on_launchtstatetpresenttabsentt
argument_spectsupports_check_modet@itrtgrouptcreate_on_missingtidtmsgs4Failed to update the group, inventory not found: {0}tchangedsFailed to update the group: {0}(tdicttTruetFalseRtparamstgettpopt
startswithtostpatht
expandusertopentreadR	Rtruntime_valuesR
t	tower_clitget_resourcetcopytmodifytdeletetexctNotFoundt	fail_jsontformattConnectionErrort
BadRequestt	AuthErrort	exit_json(R.tmoduleRRRR+Rtfilenametftjson_outputt
tower_authR2R:tinv_restinvtcred_restcredtresulttexcinfo((s`/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_group.pytmainksp									


"')t__main__(t
__future__RRRR't
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLESR>t"ansible.module_utils.ansible_towerRR	R
RDttower_cli.exceptionst
exceptionsRIttower_cli.confRtImportErrorR\t__name__(((s`/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_group.pyt<module>s"


D
	E

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