-
Notifications
You must be signed in to change notification settings - Fork 1
/
rhel7-provision-iiif.yml
90 lines (67 loc) · 1.6 KB
/
rhel7-provision-iiif.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
- name: IIIF Build
remote_user: ulsprovision
hosts: islandora_iiif_servers
become: yes
tasks:
#
# Install some prerequisite packages.
#
- name: Add group cantaloupe
group:
name: cantaloupe
state: present
- name: Add the user cantaloupe
user:
name: cantaloupe
state: present
group: cantaloupe
- name: Install java.
yum:
name: java-11-openjdk
state: latest
- name: install unzip
yum:
name: unzip
state: latest
- name: Unarchive Cantaloupe Package
unarchive:
src: resources/IIIF/cantaloupe-4.1.9.zip
dest: /opt/
- name: create srv directories for cantaloupe
file:
path: "{{ item }}"
state: directory
owner: cantaloupe
group: cantaloupe
with_items:
- '/srv/cache'
- '/srv/log'
- '/srv/home'
- '/srv/tmp'
- name:
copy:
src: /opt/cantaloupe-4.1.9/deps/Linux-x86-64/lib/
dest: /usr/lib
remote_src: yes
owner: root
group: root
mode: 775
- name: Copy Cantaloupe properties file
copy:
src: resources/IIIF/cantaloupe.properties
dest: /opt/cantaloupe-4.1.9/cantaloupe.properties
- name: Copy cantaloupe service file
copy:
src: resources/IIIF/cantaloupe.service
dest: /etc/systemd/system/cantaloupe.service
- name: Start and enable cantaloupe service
service:
name: cantaloupe
state: started
enabled: yes
- name: add port 8182 to firewall
firewalld:
port: 8182/tcp
permanent: yes
state: enabled
immediate: yes