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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
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_settings
author: "Nikhil Jain (@jainnikhil30)"
version_added: "2.7"
short_description: Modify Ansible Tower settings.
description:
    - Modify Ansible Tower settings. See
      U(https://www.ansible.com/tower) for an overview.
options:
    name:
      description:
        - Name of setting to modify
      required: True
    value:
      description:
        - Value to be modified for given setting.
      required: True
extends_documentation_fragment: tower
s # s�
- name: Set the value of AWX_PROOT_BASE_PATH
  tower_settings:
    name: AWX_PROOT_BASE_PATH
    value: "/tmp"
  register: testing_settings

- name: Set the value of AWX_PROOT_SHOW_PATHS
  tower_settings:
    name: "AWX_PROOT_SHOW_PATHS"
    value: "'/var/lib/awx/projects/', '/tmp'"
  register: testing_settings

- name: Set the LDAP Auth Bind Password
  tower_settings:
    name: "AUTH_LDAP_BIND_PASSWORD"
    value: "Password"
  no_log: true
(tTowerModulettower_auth_configttower_check_modeN(tsettingsc	C`s?tdtdt�dtdt��}td|dt�}i}|jjd�}|jjd�}t|�}tj|���t	|�yGt
jd�}|jd|d|�}|d|d<|d|d<WnDt
jt
jt
jfk
r}|jdd	j|�d
t�nXWdQX|d
|d
<|j|�dS(Ntnametrequiredtvaluet
argument_spectsupports_check_modetsettingtidtmsgs!Failed to modify the setting: {0}tchanged(tdicttTrueRtFalsetparamstgetR	Rtruntime_valuesR
t	tower_clitget_resourcetmodifytexctConnectionErrort
BadRequestt	AuthErrort	fail_jsontformatt	exit_json(	Rtmoduletjson_outputRRt
tower_authRtresulttexcinfo((sc/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_settings.pytmainFs*	
!)t__main__(t
__future__RRRttypet
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtRETURNtEXAMPLESt"ansible.module_utils.ansible_towerRR	R
Rttower_cli.exceptionst
exceptionsRttower_cli.confRtImportErrorR*t__name__(((sc/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/ansible_tower/tower_settings.pyt<module>s"



	!

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