Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/web_infrastructure/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/web_infrastructure/jboss.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
Z
ddlZddlZddl
mZd
Zd�Zd�Zd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys
module: jboss
version_added: "1.4"
short_description: Deploy applications to JBoss
description:
  - Deploy applications to JBoss standalone using the filesystem.
options:
  deployment:
    required: true
    description:
      - The name of the deployment.
    type: str
  src:
    description:
      - The remote path of the application ear or war to deploy.
      - Required when I(state=present).
      - Ignored when I(state=absent).
    type: path
  deploy_path:
    default: /var/lib/jbossas/standalone/deployments
    description:
      - The location in the filesystem where the deployment scanner listens.
    type: path
  state:
    choices: [ present, absent ]
    default: "present"
    description:
      - Whether the application should be deployed or undeployed.
    type: str
notes:
  - The JBoss standalone deployment-scanner has to be enabled in standalone.xml
  - The module can wait until I(deployment) file is deployed/undeployed by deployment-scanner.
    Duration of waiting time depends on scan-interval parameter from standalone.xml.
  - Ensure no identically named application is deployed through the JBoss CLI
seealso:
- name: WildFly reference
  description: Complete reference of the WildFly documentation.
  link: https://docs.wildfly.org
author:
  - Jeroen Hoekx (@jhoekx)
s�
- name: Deploy a hello world application to the default deploy_path
  jboss:
    src: /tmp/hello-1.0-SNAPSHOT.war
    deployment: hello.war
    state: present

- name: Update the hello world application to the non-default deploy_path
  jboss:
    src: /tmp/hello-1.1-SNAPSHOT.war
    deploy_path: /opt/wildfly/deployment
    deployment: hello.war
    state: present

- name: Undeploy the hello world application from the default deploy_path
  jboss:
    deployment: hello.war
    state: absent
s # N(t
AnsibleModules'/var/lib/jbossas/standalone/deploymentscC`s#tjjtjj|d|��S(Ns%s.deployed(tostpathtexiststjoin(tdeploy_patht
deployment((sL/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/jboss.pytis_deployedYscC`s#tjjtjj|d|��S(Ns
%s.undeployed(R	R
RR(R
R((sL/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/jboss.pyt
is_undeployed]scC`s#tjjtjj|d|��S(Ns	%s.failed(R	R
RR(R
R((sL/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/jboss.pyt	is_failedascC`s3tdtdtdd�dtdddt�dtddd	t�d
tddddd
gd	d
��dd
d
dfgdt�}tdt�}|jd}|jd}|jd}|jd
}tjj|�s�|j	dd�n|dkr|r|j
d�n6|d
krDtjj|�rD|j	dd|�nt||�}|jr�|d
kr�|s{t|d<q�|r�|j
|�|j
tjj||��kr�t|d<q�q�n|dkr�|r�t|d<n|j|�n|d
kr�|r�t||�r5tjtjj|d|��ntj|tjj||��xL|s�t||�}t||�r�|j	dd|�ntjd�qWWt|d<n|d
kr�|r�|j
|�|j
tjj||��kr�tjtjj|d|��tj|tjj||��t}xL|s�t||�}t||�rr|j	dd|�ntjd�q7Wt|d<q�n|dkr"|r"tjtjj|d|��xM|rt||�}t||�r|j	dd|�ntjd�q�Wt|d<n|j|�dS(Nt
argument_spectsrcttypeR
RtstrtrequiredR
tdefaulttstatetchoicestabsenttpresenttrequired_iftsupports_check_modetchangedtmsgsdeploy_path does not exist.s*Parameter src is ignored when state=absentsSource file %s does not exist.s	%s.failedsDeploying %s failed.is%s.deployedsUndeploying %s failed.(R(RtdicttTruetDEFAULT_DEPLOY_PATHtFalsetparamsR	R
Rt	fail_jsontwarnRt
check_modetsha1Rt	exit_jsonRtremovetshutiltcopyfilettimetsleepR(tmoduletresultRRR
Rtdeployed((sL/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/jboss.pytmainesx$	



	
-
#	
- 	 	
t__main__(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNR	R+R-tansible.module_utils.basicRR"RRRR2t__name__(((sL/usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure/jboss.pyt<module>s$


+				R

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