Home

Awesome

ansible-jbossCli

Jboss cli module for ansible

Run jboss-cli commands from ansible

Options

parameterrequireddefaultcomments
commandyesCommand to execute on JBoss Cli
cli_pathno/usr/share/wildfly/binpath to jboss-cli.sh
srcnoif command is run-batch, src is the full path to batch file
servernolocalhost:9990server and port to connect
usernouser to connecto with jboss-cli
passwordnopassword of user to connect to with jboss-cli.
verbosenoFalseShow the JBoss Cli output, commonly in DMR

Examples:

- jbosscli:
    command: /subsystem=deployment-scanner/scanner=default:write-attribute(name=scan-interval,value=6000)
    cli_path: /home/user/wildfly-10.1.0.Final/bin
- jbosscli:
    command: /subsystem=datasources/data-source=ExampleDS:write-attribute(name=user-name,value=other)
    server: 192.168.20.55:9990
- jbosscli:
    command: undeploy hello.war
    server: "{{ ansible_hostname}}:9990"

Install

copy jbosscli.py on /usr/lib/python2.7/site-packages/ansible/modules/web_infrastructure