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

�
�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_inventory
version_added: "2.3"
author: "Wayne Witzel III (@wwitzel3)"
short_description: create, update, or destroy Ansible Tower inventory.
description:
    - Create, update, or destroy Ansible Tower inventories. See
      U(https://www.ansible.com/tower) for an overview.
options:
    name:
      description:
        - The name to use for the inventory.
      required: True
    description:
      description:
        - The description to use for the inventory.
    organization:
      description:
        - Organization the inventory belongs to.
      required: True
    variables:
      description:
        - Inventory variables. Use C(@) to get from file.
    kind:
      description:
        - The kind field. Cannot be modified after created.
      default: ""
      choices: ["", "smart"]
      version_added: "2.7"
    host_filter:
      description:
        -  The host_filter field. Only useful when C(kind=smart).
      version_added: "2.7"
    state:
      description:
        - Desired state of the resource.
      default: "present"
      choices: ["present", "absent"]
extends_documentation_fragment: tower
s�
- name: Add tower inventory
  tower_inventory:
    name: "Foo Inventory"
    description: "Our Foo Cloud Servers"
    organization: "Bar Org"
    state: present
    tower_config_file: "~/tower_cli.cfg"
(tTowerModulettower_auth_configttower_check_modeN(tsettingscC`s�tdtdt�dt�dtdt�dt�dtddd	gd
d�dt�dtdd
dgd
d
��}td|dt�}|jjd�}|jjd�}|jjd�}|jjd�}|jjd�}|jjd�}|jjd�}i|d6|d6}	t|�}
tj|
��@t|�t	j
d�}y�t	j
d�}|jd|�}
|d
kr�|jd|d|
dd|d|d|d|dt�}|d|	d<n+|dkr�|jd|d|
d�}nWnxt
jk
r2}|jddj|�dt�nDt
jt
jt
jfk
ru}|jddj|�dt�nXWdQX|d|	d<|j|	�dS(Ntnametrequiredtdescriptiontorganizationt	variablestkindtchoicesttsmarttdefaultthost_filtertstatetpresenttabsentt
argument_spectsupports_check_modet	inventorytidtcreate_on_missingtmsgs7Failed to update inventory, organization not found: {0}tchangedsFailed to update inventory: {0}(tdicttTrueRtparamstgetR	Rtruntime_valuesR
t	tower_clitget_resourcetmodifytdeletetexctNotFoundt	fail_jsontformattFalsetConnectionErrort
BadRequestt	AuthErrort	exit_json(RtmoduleRRRRRRRtjson_outputt
tower_authRtorg_restorgtresulttexcinfo((sd/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_inventory.pytmainQsJ			
	#"!)t__main__(t
__future__RRRttypet
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLESt"ansible.module_utils.ansible_towerRR	R
R&ttower_cli.exceptionst
exceptionsR*ttower_cli.confRtImportErrorR:t__name__(((sd/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_inventory.pyt<module>s 


+
	0

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