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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: ucs_dns_server

short_description: Configure DNS servers on Cisco UCS Manager

extends_documentation_fragment:
- ucs

description:
- Configure DNS servers on Cisco UCS Manager.
- Examples can be used with the L(UCS Platform Emulator,https://communities.cisco.com/ucspe).

options:
  state:
    description:
    - If C(absent), will remove a DNS server.
    - If C(present), will add or update a DNS server.
    choices: [absent, present]
    default: present
    type: str

  dns_server:
    description:
    - DNS server IP address.
    - Enter a valid IPV4 Address.
    - UCS Manager supports up to 4 DNS Servers
    aliases: [ name ]
    type: str

  description:
    description:
    - A user-defined description of the DNS server.
    - 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 ]
    type: str

  delegate_to:
    description:
    - Where the module will be run
    default: localhost
    type: str

requirements:
- ucsmsdk

author:
- John McDonough (@movinalot)
- CiscoUcs (@CiscoUcs)

version_added: "2.8"
s�
- name: Configure DNS server
  ucs_dns_server:
    hostname: 172.16.143.150
    username: admin
    password: password
    dns_server: 10.10.10.10
    description: DNS Server IP address
    state: present
    delegate_to: localhost

- name: Remove DNS server
  ucs_dns_server:
    hostname: 172.16.143.150
    username: admin
    password: password
    dns_server: 10.10.10.10
    state: absent
    delegate_to: localhost
s
#
(t
AnsibleModule(t	UCSModuletucs_argument_speccC`sft}|jdtddddg�dtddddgdd	�d
tddddddd
g�dtdddd��t|dtdd
ddggg�}t|�}ddlm}t}t}y.t}t}d|j	d}|j
j|�}	|	rt}n|j	d
d
krZ|r�|jsN|j
j
|	�|j
j�nt}q�n�|r�td|j	d�}
|	j|
�r�t}q�n|s�|js�|ddd|j	dd|j	d�}	|j
j|	dt�|j
j�nt}nWn0tk
r+}t}dt|�|jd<nX||jd<|rR|j|j�n|j|j�dS(Nt
dns_serverttypetstrtaliasestnametdescriptiontdescrtdefaultttstatetpresenttchoicestabsenttdelegate_tot	localhosttsupports_check_modetrequired_ifi(tCommDnsProviderssys/svc-ext/dns-svc/dns-tparent_mo_or_dnssys/svc-ext/dns-svctmodify_presentssetup error: %s tmsgtchanged(R
tupdatetdictRtTrueR	t#ucsmsdk.mometa.comm.CommDnsProviderRtFalsetparamstlogin_handletquery_dnt
check_modet	remove_motcommittcheck_prop_matchtadd_mot	ExceptionR
tresultt	fail_jsont	exit_json(t
argument_spectmoduletucsRterrR t	mo_existstprops_matchtdntmotkwargste((sX/usr/lib/python2.7/site-packages/ansible/modules/remote_management/ucs/ucs_dns_server.pyt
run_moduleas\	!			


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


7	C	

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