Jboss cli module for ansible
Switch branches/tags
Nothing to show
Clone or download
Latest commit 00c6411 Aug 24, 2018
Failed to load latest commit information.
.gitignore Initial commit Apr 6, 2017
LICENSE Initial commit Apr 6, 2017
README.md fix module name Dec 5, 2017
jbosscli.py sanity May 1, 2017



Jboss cli module for ansible

Run jboss-cli commands from ansible


parameter required default comments
command yes Command to execute on JBoss Cli
cli_path no /usr/share/wildfly/bin path to jboss-cli.sh
src no if command is run-batch, src is the full path to batch file
server no localhost:9990 server and port to connect
user no user to connecto with jboss-cli
password no password of user to connect to with jboss-cli.
verbose no False Show the JBoss Cli output, commonly in DMR


  • change scan-interval value on, path to jboss-cli: /home/user/wildfly-10.1.0.Final/bin/jboss-cli.sh
- jbosscli:
    command: /subsystem=deployment-scanner/scanner=default:write-attribute(name=scan-interval,value=6000)
    cli_path: /home/user/wildfly-10.1.0.Final/bin
  • Change user of ExampleDS on server with ip addres port 9990
- jbosscli:
    command: /subsystem=datasources/data-source=ExampleDS:write-attribute(name=user-name,value=other)
  • Undeploy "hello world" application
- jbosscli:
    command: undeploy hello.war
    server: "{{ ansible_hostname}}:9990"


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