jboss module: actualize doc formatting (#58913)

* jboss module: actualize doc formatting, remove exceptions from ignore.txt
pull/58920/head
Andrey Klychkov 7 years ago committed by Abhijeet Kasurde
parent 753f998262
commit 41b7b1c6e9

@ -13,57 +13,61 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
'supported_by': 'community'} 'supported_by': 'community'}
DOCUMENTATION = """ DOCUMENTATION = r"""
module: jboss module: jboss
version_added: "1.4" version_added: "1.4"
short_description: deploy applications to JBoss short_description: Deploy applications to JBoss
description: description:
- Deploy applications to JBoss standalone using the filesystem - Deploy applications to JBoss standalone using the filesystem.
options: options:
deployment: deployment:
required: true required: true
description: description:
- The name of the deployment - The name of the deployment.
type: str
src: src:
required: false
description: description:
- The remote path of the application ear or war to deploy - The remote path of the application ear or war to deploy.
type: path
deploy_path: deploy_path:
required: false
default: /var/lib/jbossas/standalone/deployments default: /var/lib/jbossas/standalone/deployments
description: description:
- The location in the filesystem where the deployment scanner listens - The location in the filesystem where the deployment scanner listens.
type: path
state: state:
required: false
choices: [ present, absent ] choices: [ present, absent ]
default: "present" default: "present"
description: description:
- Whether the application should be deployed or undeployed - Whether the application should be deployed or undeployed.
type: str
notes: notes:
- "The JBoss standalone deployment-scanner has to be enabled in standalone.xml" - The JBoss standalone deployment-scanner has to be enabled in standalone.xml
- "Ensure no identically named application is deployed through the JBoss CLI" - Ensure no identically named application is deployed through the JBoss CLI
author: "Jeroen Hoekx (@jhoekx)" author:
- Jeroen Hoekx (@jhoekx)
""" """
EXAMPLES = """ EXAMPLES = r"""
# Deploy a hello world application - name: Deploy a hello world application
- jboss: jboss:
src: /tmp/hello-1.0-SNAPSHOT.war src: /tmp/hello-1.0-SNAPSHOT.war
deployment: hello.war deployment: hello.war
state: present state: present
# Update the hello world application - name: Update the hello world application
- jboss: jboss:
src: /tmp/hello-1.1-SNAPSHOT.war src: /tmp/hello-1.1-SNAPSHOT.war
deployment: hello.war deployment: hello.war
state: present state: present
# Undeploy the hello world application - name: Undeploy the hello world application
- jboss: jboss:
deployment: hello.war deployment: hello.war
state: absent state: absent
""" """
RETURN = r""" # """
import os import os
import shutil import shutil
import time import time
@ -86,9 +90,9 @@ def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( argument_spec=dict(
src=dict(type='path'), src=dict(type='path'),
deployment=dict(required=True), deployment=dict(type='str', required=True),
deploy_path=dict(type='path', default='/var/lib/jbossas/standalone/deployments'), deploy_path=dict(type='path', default='/var/lib/jbossas/standalone/deployments'),
state=dict(choices=['absent', 'present'], default='present'), state=dict(type='str', choices=['absent', 'present'], default='present'),
), ),
required_if=[('state', 'present', ('src',))] required_if=[('state', 'present', ('src',))]
) )

@ -3652,8 +3652,6 @@ lib/ansible/modules/web_infrastructure/gunicorn.py E322
lib/ansible/modules/web_infrastructure/gunicorn.py E337 lib/ansible/modules/web_infrastructure/gunicorn.py E337
lib/ansible/modules/web_infrastructure/htpasswd.py E326 lib/ansible/modules/web_infrastructure/htpasswd.py E326
lib/ansible/modules/web_infrastructure/htpasswd.py E338 lib/ansible/modules/web_infrastructure/htpasswd.py E338
lib/ansible/modules/web_infrastructure/jboss.py E337
lib/ansible/modules/web_infrastructure/jboss.py E338
lib/ansible/modules/web_infrastructure/jenkins_job_info.py E338 lib/ansible/modules/web_infrastructure/jenkins_job_info.py E338
lib/ansible/modules/web_infrastructure/jenkins_job.py E338 lib/ansible/modules/web_infrastructure/jenkins_job.py E338
lib/ansible/modules/web_infrastructure/jenkins_plugin.py E322 lib/ansible/modules/web_infrastructure/jenkins_plugin.py E322

Loading…
Cancel
Save