Created
May 30, 2017 20:03
-
-
Save jairojunior/c5c6bd54dc1125598a3f9fcb72cf55dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Configure datasource | |
| jboss_resource: | |
| name: "/subsystem=datasources/data-source=DemoDS" | |
| state: present | |
| attributes: | |
| driver-name: h2 | |
| connection-url: "jdbc:h2:mem:demo;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE" | |
| jndi-name: "java:jboss/datasources/DemoDS" | |
| user-name: sa | |
| password: sa | |
| min-pool-size: 10 | |
| max-pool-size: 30 | |
| - name: Check server-state | |
| jboss_cli: | |
| command: ":read-attribute(name=server-state)" | |
| register: server_state | |
| changed_when: False | |
| - name: Reload server | |
| jboss_cli: | |
| command: ":reload" | |
| when: server_state.meta.result == "reload-required" | |
| - name: Download hawt.io | |
| - maven_artifact: | |
| group_id: io.hawt | |
| artifact_id: hawtio-web | |
| version: 1.5.0 | |
| extension: war | |
| dest: /opt/hawtio.war | |
| - name: Deploy hawt.io | |
| jboss_deployment: | |
| name: hawtio.war | |
| state: present | |
| src: /opt/hawtio.war |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment