Git Product home page Git Product logo

ansible-jboss-cli's Introduction

Ansible-jboss-cli

Ansible playbook to execute JBoss CLI

You can run JBoss CLI commands from Ansible. These playbooks dynamically wrapped the JBoss CLI commands to give you the Ansible checking capabilities over the Wildfly command lines tool. In addition, you can use Ansible Tower to integrate these playbooks creating an automatic order/flow and monitor it.

In order to run all the playbook below you need to pass this an argument called {{jboss-home}} e.g

ansible-playbook <playbook name> --extra-vars "<jboss path installation>"

Pre requirement to run these playbook is to have Wildfly running, it will check and failed if Wildfly/JBoss is not up and running

jboss-bound-address

Return Wildfly ip address

 - name: Jboss get ip address
    shell: "{{jboss_home}}/bin/jboss-cli.sh --connect --commands='ls -l socket-binding-group=standard-sockets/socket-binding=http | grep bound-port' > out.txt"
    register: lsout
    tags: lsout

jboss-bound-port

Return Wildfly port

- name: Jboss get port
    shell: "{{jboss_home}}/bin/jboss-cli.sh --connect --commands='ls -l socket-binding-group=standard-sockets/socket-binding=http | grep bound-port' > out.txt"
    register: lsout
    tags: lsout

jboss-log-level

Return the log level set up for that Wildfly

 - name: Jboss get log level
    shell: "{{jboss_home}}/bin/jboss-cli.sh --connect --commands='/subsystem=logging/root-logger=ROOT:change-root-log-level(level={{log_level}})' > out.txt"
    register: lsout
    tags: lsout

jboss-log-location

Return the log directory location

 - name: Jboss get log location
    shell: "{{jboss_home}}/bin/jboss-cli.sh --connect --commands='ls -l socket-binding-group=standard-sockets/socket-binding=http | grep bound-address' > out.txt"
    register: lsout
    tags: lsout

jboss-patch-apply

Apply a Wildfly path to the current installation, you must restart the server after it successfully applied the patch.

- name: Jboss apply patch
    shell: "{{jboss_home}}/bin/jboss-cli.sh --connect --commands='patch apply jboss-eap-7.4.1-patch.zip' > out.txt"
    register: lsout
    tags: lsout

jboss-version

Return the current Wildfly version

- name: Jboss get version
    shell: "{{jboss_home}}/bin/jboss-cli.sh --connect --commands='ls -l | grep product-version' > out.txt"
    register: lsout
    tags: lsout

ansible-jboss-cli's People

Contributors

pamenon avatar paulomenon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.