Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/remote_management/ucs/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_timezone.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bysg
---
module: ucs_timezone
short_description: Configures timezone on Cisco UCS Manager
description:
- Configures timezone on Cisco UCS Manager.
- Examples can be used with the L(UCS Platform Emulator,https://communities.cisco.com/ucspe).
extends_documentation_fragment: ucs
options:
  state:
    description:
    - If C(absent), will unset timezone.
    - If C(present), will set or update timezone.
    choices: [absent, present]
    default: present

  admin_state:
    description:
    - The admin_state setting
    - The enabled admin_state indicates the timezone configuration is utilized by UCS Manager.
    - The disabled admin_state indicates the timezone configuration is ignored by UCS Manager.
    choices: [disabled, enabled]
    default: enabled

  description:
    description:
    - A user-defined description of the timezone.
    - Enter up to 256 characters.
    - "You can use any characters or spaces except the following:"
    - "` (accent mark), \ (backslash), ^ (carat), \" (double quote), = (equal sign), > (greater than), < (less than), or ' (single quote)."
    aliases: [ descr ]
    default: ""

  timezone:
    description:
    - The timezone name.
    - Time zone names are from the L(tz database,https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
    - The timezone name is case sensitive.
    - The timezone name can be between 0 and 510 alphanumeric characters.
    - You cannot use spaces or any special characters other than
    - "\"-\" (hyphen), \"_\" (underscore), \"/\" (backslash)."

requirements:
- ucsmsdk
author:
- John McDonough (@movinalot)
- CiscoUcs (@CiscoUcs)
version_added: '2.7'
s�
- name: Configure Time Zone
  ucs_timezone:
    hostname: 172.16.143.150
    username: admin
    password: password
    state: present
    admin_state: enabled
    timezone: America/Los_Angeles
    description: 'Time Zone for Los Angeles'

- name: Unconfigure Time Zone
  ucs_timezone:
    hostname: 172.16.143.150
    username: admin
    password: password
    state: absent
    admin_state: disabled
s
#
(t
AnsibleModule(t	UCSModuletucs_argument_speccC`s�t}|jdtdd�dtddddgdd�d	tdddd
ddd
g�d
tdddddddg��t|dtdd
ddggg�}t|�}t}t}ydt}t}d}|jj|�}|r�t}n|j	d
dkrZ|r!|j
sNd|_d|_|jj
|dt�|jj�nt}q!n�|r�td|j	d�}	|j	d|	d<|j	d	|	d	<|j|	�r�t}q�n|s!|j
s|j	d|_|j	d|_|j	d	|_|jj
|dt�|jj�nt}nWn0tk
rT}
t}dt|
�|jd<nX||jd<|r{|j|j�n|j|j�dS(Nttimezonettypetstrtdescriptiontaliasestdescrtdefaultttadmin_statetenabledtchoicestdisabledtstatetpresenttabsenttsupports_check_modetrequired_ifssys/svc-ext/datetime-svctmodify_presentssetup error: %s tmsgtchanged(R
tupdatetdictRtTrueR	tFalsetlogin_handletquery_dntparamst
check_modeRRtadd_motcommittcheck_prop_matchRt	ExceptionR
tresultt	fail_jsont	exit_json(t
argument_spectmoduletucsterrRt	mo_existstprops_matchtdntmotkwargste((sV/usr/lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_timezone.pyt
run_module[sb	!"					

cC`st�dS(N(R8(((sV/usr/lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_timezone.pytmain�st__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt*ansible.module_utils.remote_management.ucsR	R
R8R9t__name__(((sV/usr/lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_timezone.pyt<module>s


2	E	

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