Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/avi/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/avi/avi_useraccount.pyo

�
�Udac@s�dZidd6dgd6dd6ZdZdZd	Zd
dlZd
dlZd
dlmZd
d
l	m
Z
yBd
dlmZm
Z
mZmZmZd
dlmZmZWnek
r�eZnXd�Zedkr�e�ndS(s
# Created on Aug 12, 2016
#
# @author: Gaurav Rastogi ([email protected]) GitHub ID: grastogi23
#
# module_check: not supported
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible.  If not, see <http://www.gnu.org/licenses/>.
#
s1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys'
---
module: avi_useraccount
author: Chaitanya Deshpande (@chaitanyaavi) <[email protected]>
short_description: Avi UserAccount Module
description:
    - This module can be used for updating the password of a user.
    - This module is useful for setting up admin password for Controller bootstrap.
version_added: 2.6
requirements: [ avisdk ]
options:
    old_password:
        description:
            - Old password for update password or default password for bootstrap.
    force_change:
        description:
            - If specifically set to true then old password is tried first for controller and then the new password is
              tried. If not specified this flag then the new password is tried first.
        version_added: "2.9"

extends_documentation_fragment:
    - avi
sW
  - name: Update user password
    avi_useraccount:
      controller: ""
      username: ""
      password: new_password
      old_password: ""
      api_version: ""
      force_change: false

  - name: Update user password using avi_credentials
    avi_useraccount:
      avi_credentials: ""
      old_password: ""
      force_change: false
sW
obj:
    description: Avi REST resource
    returned: success, changed
    type: dict
i����N(t
AnsibleModule(tdeepcopy(tavi_common_argument_spectansible_returntavi_obj_cmptcleanup_absent_fieldstHAS_AVI(t
ApiSessiontAviCredentialscCs6tdtdddtdt�dtdddt��}|jt��td	|�}tsn|jd
d�St�}|j	|�|j
jd�}|j
jdt�}i|d6|jd6}|r�|}|j}n|j}|}t}y|t
j|j|jd|d
|jd|jd|jd|jd|j�}	|rj|	jdd|�}
|
rjt}qjnWntk
r~nX|st
j|j|jd|d
|jd|jd|jd|jd|j�}	|s|	jdd|�}
|
r�t}q�qn|rt||
td|�St||
td|�SdS(Ntold_passwordttypetstrtrequiredtno_logtforce_changetbooltdefaultt
argument_spectmsgszAvi python API SDK (avisdk>=17.1) or requests is not installed. For more details visit https://github.com/avinetworks/sdk.tpasswordttimeoutttenantttenant_uuidttokentporttuseraccounttdatatreq(tdicttTruetFalsetupdateRRRt	fail_jsonR
tupdate_from_ansible_moduletparamstgetRRtget_sessiont
controllertusernameRRRRRtputt	ExceptionR(targument_specstmodulet	api_credsRRRt	first_pwdt
second_pwdtpassword_changedtapitrsp((sO/usr/lib/python2.7/site-packages/ansible/modules/network/avi/avi_useraccount.pytmain^s\		

	
t__main__(t__doc__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtjsonttimetansible.module_utils.basicRtcopyRt$ansible.module_utils.network.avi.aviRRR	R
Rt(ansible.module_utils.network.avi.avi_apiRR
tImportErrorR#R6t__name__(((sO/usr/lib/python2.7/site-packages/ansible/modules/network/avi/avi_useraccount.pyt<module>s$


(

	:

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