This repository has been archived by the owner on Oct 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
eap7.1-rhel7.yml
58 lines (49 loc) · 1.51 KB
/
eap7.1-rhel7.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
- hosts: jboss_eap_rhel_hosts
become_user: "{{ ansible_rhel_user }}"
become: true
gather_facts: true
vars_prompt:
- name: "rhn_username"
prompt: "Enter Your Red Hat Customer Portal Username"
private: no
- name: "rhn_password"
prompt: "Enter Your Red Hat Customer Portal Password"
private: yes
vars:
app_url: http://people.redhat.com/~rpelisse/simple-webapp.war
app: /tmp/simple-webapp.war
ansible_distribution: RedHat
ansible_os_family: RedHat
ansible_pkg_mgr: yum
jboss_home: /opt/jboss-as/jboss-eap-7.1/
collections:
- wildfly.jcliff
roles:
- redhat-cop.jboss_common
- redhat-cop.jboss_eap
- jcliff
tasks:
- name: "Download a demo app to deploy"
get_url:
url: "{{ app_url }}"
dest: "{{ app }}"
- jcliff:
wfly_home: "{{ jboss_home }}"
timeout: 7000
subsystems:
- system_props:
- name: jcliff.enabled
value: 'enabled.plus'
- deployments:
- name: simple-webapp
path: /tmp/simple-webapp.war
- datasources:
- name: ExampleDS2
use_java_context: 'true'
jndi_name: java:jboss/datasources/ExampleDS2
connection_url: "jdbc:h2:mem:test2;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE"
driver_name: h2
- name: "Restart Wildfly"
command: "{{ jboss_home }}/bin/jboss-cli.sh --connect --command=':reload'"
register: cli_result