Last change
on this file since 38572 was 38572, checked in by davidb, 5 months ago |
Copy of the playbook to get Greenstone3 compiled up and deployed over https when first working, and before code tidyup
|
File size:
1.1 KB
|
Line | |
---|
1 | ---
|
---|
2 | - name: Set up Apache2 virtualhost
|
---|
3 | template:
|
---|
4 | src: "files/gs3-apache.conf.j2"
|
---|
5 | dest: "/etc/apache2/sites-available/{{ apache2_revproxy_config.config_root_name }}.conf"
|
---|
6 |
|
---|
7 | - name: Adjusting Greenstone3 installations index.html to work in Apache2 DocumentRoot
|
---|
8 | ansible.builtin.replace:
|
---|
9 | path: "{{ gsdl3srchome }}/web/index.html"
|
---|
10 | regexp: 'href="(?!http://|/)'
|
---|
11 | replace: 'href="/{{ gsdl3servlet_external.context }}/'
|
---|
12 |
|
---|
13 | - name: Enable new site
|
---|
14 | shell: /usr/sbin/a2ensite {{ apache2_revproxy_config.config_root_name }}.conf
|
---|
15 | notify: Reload Apache
|
---|
16 |
|
---|
17 | # - name: "UFW - Allow HTTP on port {{ gsdl3servlet_external.port | default('80',true) }}"
|
---|
18 | # ufw:
|
---|
19 | # rule: allow
|
---|
20 | # port: "{{ gsdl3servlet_external.port | default('80',true) }}"
|
---|
21 | # proto: tcp
|
---|
22 | # when gsdl3servlet_external.protocol == "http"
|
---|
23 |
|
---|
24 | # - name: "UFW - Allow HTTP on port {{ gsdl3servlet_external.port | default('80',true) }}"
|
---|
25 | # ufw:
|
---|
26 | # rule: allow
|
---|
27 | # port: "{{ gsdl3servlet_external.port | default('80',true) }}"
|
---|
28 | # proto: tcp
|
---|
29 | # when gsdl3servlet_external.port == "http" |
---|
Note:
See
TracBrowser
for help on using the repository browser.