This repository has been archived by the owner on Oct 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
install.yml
97 lines (83 loc) · 2.64 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
---
- name: Add ImageMagick repo (apt)
apt_repository:
repo: 'ppa:lyrasis/imagemagick-jp2'
when: ansible_os_family == "Debian"
- name: Install epel repository
yum:
name: epel-release
state: present
when: ansible_os_family == "RedHat"
- name: Add nux repository for ffmpeg on CentOS
yum:
name: http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
state: present
when: ansible_os_family == "RedHat"
- name: Add nux desktop repository signing key
rpm_key:
key: /etc/pki/rpm-gpg/RPM-GPG-KEY-nux.ro
when: ansible_os_family == "RedHat"
- name: Install requisite packages
package:
name: "{{ item }}"
state: present
with_items: "{{ crayfish_packages }}"
- name: Install crayfish code
git:
repo: https://github.com/Islandora-CLAW/Crayfish.git
dest: "{{ crayfish_install_dir }}"
version: "{{ crayfish_version_tag }}"
- name: Build crayfish code including dependencies
composer:
command: install
working_dir: "{{ crayfish_install_dir }}/{{item}}"
with_items: "{{ crayfish_services }}"
- name: Configure crayfish code
template:
src: "{{item}}.config.yaml.j2"
dest: "{{ crayfish_install_dir }}/{{item}}/cfg/config.yaml"
with_items: "{{ crayfish_services }}"
- name: Get SSL keys
include_role:
name: Islandora-Devops.keymaster
vars:
ssl_key_public_output_path: "{{ crayfish_install_dir }}/public.key"
- name: Install auth config
template:
src: "syn-settings.xml.jp2"
dest: "{{ crayfish_install_dir }}/{{item}}/syn-settings.xml"
with_items: "{{ crayfish_services }}"
- name: Create Islandora log dir
file:
path: /var/log/islandora
state: directory
owner: "{{ crayfish_user }}"
group: "{{ crayfish_user }}"
mode: "urwx,gr,o-rwx"
- name: Create httpd config directories
file:
path: "{{httpd_conf_directory}}/{{ item }}/"
state: directory
owner: "{{ crayfish_user }}"
group: "{{ crayfish_user }}"
mode: "urwx,gr,o-rwx"
with_items:
- "conf-available"
- "conf-enabled"
when: ansible_os_family == "RedHat"
- name: Install crayfish httpd config file
template:
src: "httpd/{{item}}.conf.j2"
dest: "{{httpd_conf_directory}}/conf-available/{{item}}.conf"
owner: "{{ crayfish_user }}"
group: "{{ crayfish_user }}"
with_items: "{{ crayfish_services }}"
- name: Symlink crayfish httpd config file into action
file:
src: "{{httpd_conf_directory}}/conf-available/{{item}}.conf"
dest: "{{httpd_conf_directory_enabled}}/{{item}}.conf"
owner: "{{ crayfish_user }}"
group: "{{ crayfish_user }}"
state: link
with_items: "{{ crayfish_services }}"
notify: restart apache