Anons79 Mini Shell

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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys>
---
module: mso_schema_template_deploy
short_description: Deploy schema templates to sites
description:
- Deploy schema templates to sites.
author:
- Dag Wieers (@dagwieers)
version_added: '2.8'
options:
  schema:
    description:
    - The name of the schema.
    type: str
    required: yes
  template:
    description:
    - The name of the template.
    type: str
    aliases: [ name ]
  site:
    description:
    - The name of the site B(to undeploy).
    type: str
  state:
    description:
    - Use C(deploy) to deploy schema template.
    - Use C(status) to get deployment status.
    - Use C(undeploy) to deploy schema template from a site.
    type: str
    choices: [ deploy, status, undeploy ]
    default: deploy
seealso:
- module: mso_schema_site
- module: mso_schema_template
extends_documentation_fragment: mso
s�
- name: Deploy a schema template
  mso_schema_template_deploy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    state: deploy
  delegate_to: localhost

- name: Undeploy a schema template
  mso_schema_template_deploy:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    site: Site 1
    state: undeploy
  delegate_to: localhost

- name: Get deployment status
  mso_schema:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    template: Template 1
    state: status
  delegate_to: localhost
  register: status_result
t
(t
AnsibleModule(t	MSOModuletmso_argument_specc
C`s�t�}|jdtdddt�dtdddtddg�dtdd�d	tddd
dddd
dg��td|dtdd	ddggg�}|jd}|jd}|jd}|jd	}t|�}|j|�}td|d|�}d}	|dkr.dj	||�}
n`|d
krOdj	||�}
n?|dkr�dj	||�}
|j
|�}td|�}	n|js�|j|
ddd|d|	�}n|j
|�dS(NtschemattypetstrtrequiredttemplatetaliasestnametsitetstatetdefaulttdeploytchoicesRtundeployt
argument_spectsupports_check_modetrequired_iftschemaIdttemplateNamesexecute/schema/{0}/template/{1}sstatus/schema/{0}/template/{1}tmethodtGETtdatatqs(RtupdatetdicttTrueR	tparamsR
t
lookup_schematNonetformattlookup_sitet
check_modetrequestt	exit_json(
RtmoduleRRRRtmsot	schema_idtpayloadR!tpathtsite_idR((sZ/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_template_deploy.pytmain]s>		%



		$t__main__N(t
__future__RRRR
t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	t$ansible.module_utils.network.aci.msoR
RR3t__name__(((sZ/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema_template_deploy.pyt<module>s


&"	0

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