�
�Udac @ s� d Z i d d 6d g d 6d d 6Z d Z d Z d Z d
d l Z d
d l Z d
d l m Z d
d
l m
Z
yB d
d l m Z m
Z
m Z m Z m Z d
d l m Z m Z Wn e k
r� e Z n Xd � Z e d k r� e � n d S( 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/>.
#
s 1.1t metadata_versiont previewt statust 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( t deepcopy( t avi_common_argument_spect ansible_returnt avi_obj_cmpt cleanup_absent_fieldst HAS_AVI( t
ApiSessiont AviCredentialsc C s6 t d t d d d t d t � d t d d d t � � } | j t � � t d | � } t sn | j d
d � St � } | j | � | j
j d � } | j
j d t � } i | d 6| j d 6} | r� | } | j } n | j } | } t } y| t
j | j | j d | d
| j d | j d | j d | j d | j �} | rj| j d d | �}
|
rjt } qjn Wn t k
r~n X| s t
j | j | j d | d
| j d | j d | j d | j d | j �} | s | j d d | �}
|
r�t } q�q n | rt | |
t d | �St | |
t d | �Sd S( Nt old_passwordt typet strt requiredt no_logt force_changet boolt defaultt
argument_spect msgsz Avi python API SDK (avisdk>=17.1) or requests is not installed. For more details visit https://github.com/avinetworks/sdk.t passwordt timeoutt tenantt tenant_uuidt tokent portt useraccountt datat req( t dictt Truet Falset updateR R R t fail_jsonR
t update_from_ansible_modulet paramst getR R t get_sessiont
controllert usernameR R R R R t putt ExceptionR ( t argument_specst modulet api_credsR R R t first_pwdt
second_pwdt password_changedt apit rsp( ( sO /usr/lib/python2.7/site-packages/ansible/modules/network/avi/avi_useraccount.pyt main^ s\
t __main__( t __doc__t ANSIBLE_METADATAt
DOCUMENTATIONt EXAMPLESt RETURNt jsont timet ansible.module_utils.basicR t copyR t$ ansible.module_utils.network.avi.aviR R R R
R t( ansible.module_utils.network.avi.avi_apiR R
t ImportErrorR# R6 t __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]