-
Notifications
You must be signed in to change notification settings - Fork 7
/
install.yml
122 lines (110 loc) · 3.92 KB
/
install.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
- name: Download PostgreSQL JDBC Driver
local_action: get_url
become: false
args:
url: "{{ postgresql_jdbc_driver_url }}"
dest: "{{ lib_persistent_data_path_local }}/{{ postgresql_jdbc_driver_filename }}"
sha256sum: "{{ postgresql_jdbc_driver_sha256sum }}"
- name: Install PostgreSQL JDBC Driver in Tomcat
copy:
src: "{{ lib_persistent_data_path_local }}/{{ postgresql_jdbc_driver_filename }}"
dest: "{{ xwiki_path }}/lib"
owner: "{{ xwiki_user }}"
group: "{{ xwiki_group }}"
notify: Restart tomcat-xwiki
- name: Download XWiki
local_action: get_url
become: false
args:
url: "{{ xwiki_download_url }}"
dest: "{{ lib_persistent_data_path_local }}/{{ xwiki_filename }}"
sha256sum: "{{ xwiki_sha256sum }}"
- name: Create XWiki webapp ROOT directory in Tomcat
file:
path: "{{ xwiki_path }}/webapps/ROOT"
state: directory
owner: "{{ xwiki_user }}"
group: "{{ xwiki_group }}"
- name: Install XWiki in Tomcat
unarchive:
src: "{{ lib_persistent_data_path_local }}/{{ xwiki_filename }}"
dest: "{{ xwiki_path }}/webapps/ROOT"
owner: "{{ xwiki_user }}"
group: "{{ xwiki_group }}"
creates: "{{ xwiki_path }}/webapps/ROOT/WEB-INF"
copy: yes
notify: Restart tomcat-xwiki
- name: Install the robots.txt for XWiki
copy:
src: robots.txt
dest: "{{ xwiki_path }}/webapps/ROOT/robots.txt"
owner: "{{ xwiki_user }}"
group: "{{ xwiki_group }}"
mode: 0644
- name: Install the fop-config.xml for XWiki to overcome PDF Export bug XWIKI-13307
copy:
src: fop-config.xml
dest: "{{ xwiki_path }}/webapps/ROOT/WEB-INF/classes/fop-config.xml"
owner: "{{ xwiki_user }}"
group: "{{ xwiki_group }}"
mode: 0644
- name: Create XWiki local maven repository for custom extensions
file:
path: "{{ xwiki_environment_permanent_directory }}maven-repository"
state: directory
owner: "{{ xwiki_user }}"
group: "{{ xwiki_group }}"
- name: Download clojure and the clojure JSR 223 compatibility library
local_action: get_url
become: false
args:
url: "{{ item.url }}"
dest: "{{ lib_persistent_data_path_local }}/{{ item.filename }}"
checksum: "sha256:{{ item.checksum }}"
with_items:
- url: "{{ xwiki_clojure_download_url }}"
checksum: "{{ xwiki_clojure_sha256sum }}"
filename: "{{ xwiki_clojure_filename }}"
- url: "{{ xwiki_clojure_jsr223_download_url }}"
checksum: "{{ xwiki_clojure_jsr223_sha256sum }}"
filename: "{{ xwiki_clojure_jsr223_filename }}"
when: xwiki_colojure_scripting
- name: Install clojure and the clojure JSR 223 compatibily library
copy:
src: "{{ lib_persistent_data_path_local }}/{{ item }}"
dest: "{{ xwiki_path }}/webapps/ROOT/WEB-INF/lib/"
owner: "{{ xwiki_user }}"
group: "{{ xwiki_group }}"
mode: 0644
with_items:
- "{{ xwiki_clojure_filename }}"
- "{{ xwiki_clojure_jsr223_filename }}"
when: xwiki_colojure_scripting
notify: Restart tomcat-xwiki
- name: Download the ExcelPlugin XWiki plugin and the jxl jar
local_action: get_url
become: false
args:
url: "{{ item.url }}"
dest: "{{ lib_persistent_data_path_local }}/{{ item.filename }}"
checksum: "sha256:{{ item.checksum }}"
with_items:
- url: "{{ xwiki_plugin_excelplugin_url }}"
checksum: "{{ xwiki_plugin_excelplugin_sha256sum }}"
filename: "{{ xwiki_plugin_excelplugin_filename }}"
- url: "{{ xwiki_lib_jxl_url }}"
checksum: "{{ xwiki_lib_jxl_sha256sum }}"
filename: "{{ xwiki_lib_jxl_filename }}"
when: xwiki_plugin_excel
- name: Install the ExcelPlugin XWiki plugin and the jxl jar
copy:
src: "{{ lib_persistent_data_path_local }}/{{ item }}"
dest: "{{ xwiki_path }}/webapps/ROOT/WEB-INF/lib/"
owner: "{{ xwiki_user }}"
group: "{{ xwiki_group }}"
mode: 0644
with_items:
- "{{ xwiki_plugin_excelplugin_filename }}"
- "{{ xwiki_lib_jxl_filename }}"
when: xwiki_colojure_scripting
notify: Restart tomcat-xwiki