Compare commits
3 Commits
6a106a5573
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a655e2212 | |||
| 58612a972a | |||
| 6c0dc04f49 |
@@ -15,6 +15,7 @@ Role Variables
|
|||||||
with their default value, if any
|
with their default value, if any
|
||||||
|
|
||||||
koha_version: 21.05.05
|
koha_version: 21.05.05
|
||||||
|
koha_debian_version: 21.05
|
||||||
koha_home_dir: /home/koha
|
koha_home_dir: /home/koha
|
||||||
koha_install_dir: "{{ koha_home_dir }}/koha"
|
koha_install_dir: "{{ koha_home_dir }}/koha"
|
||||||
koha_src_dir: "{{ koha_home_dir }}/Koha-{{ koha_version }}"
|
koha_src_dir: "{{ koha_home_dir }}/Koha-{{ koha_version }}"
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
# defaults file for tco.koha
|
# defaults file for tco.koha
|
||||||
|
|
||||||
koha_version: 21.05.07
|
koha_version: 21.05.07
|
||||||
|
koha_debian_version: 21.05
|
||||||
koha_home_dir: /home/koha
|
koha_home_dir: /home/koha
|
||||||
koha_install_dir: "{{ koha_home_dir }}/koha"
|
koha_install_dir: "{{ koha_home_dir }}/koha"
|
||||||
koha_src_dir: "{{ koha_home_dir }}/Koha-v{{ koha_version }}"
|
koha_src_dir: "{{ koha_home_dir }}/Koha-v{{ koha_version }}"
|
||||||
|
|||||||
@@ -25,9 +25,14 @@
|
|||||||
state: present
|
state: present
|
||||||
- apt_repository:
|
- apt_repository:
|
||||||
filename: koha
|
filename: koha
|
||||||
repo: "deb http://debian.koha-community.org/koha stable main"
|
repo: "deb http://debian.koha-community.org/koha {{ koha_debian_version }} main"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: create koha group
|
||||||
|
ansible.builtin.group:
|
||||||
|
name: "{{ koha_group }}"
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: create koha user
|
- name: create koha user
|
||||||
vars:
|
vars:
|
||||||
- kohapassword: $ANSIBLE_VAULT;1.1;AES256
|
- kohapassword: $ANSIBLE_VAULT;1.1;AES256
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: install mandatory packages
|
- name: install mandatory packages
|
||||||
package:
|
apt:
|
||||||
|
cache_valid_time: 3600
|
||||||
state: present
|
state: present
|
||||||
name:
|
name:
|
||||||
- git
|
- git
|
||||||
|
|||||||
@@ -22,12 +22,14 @@
|
|||||||
SetEnv DEBUG 1
|
SetEnv DEBUG 1
|
||||||
Options +FollowSymLinks
|
Options +FollowSymLinks
|
||||||
|
|
||||||
SSLEngine on
|
<IfModule mod_ssl>
|
||||||
SSLProtocol all -SSLv2
|
SSLEngine on
|
||||||
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
|
SSLProtocol all -SSLv2
|
||||||
SSLCertificateFile {{ koha_apache_ssl_cert }}
|
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
|
||||||
SSLCertificateKeyFile {{ koha_apache_ssl_key }}
|
SSLCertificateFile {{ koha_apache_ssl_cert }}
|
||||||
SSLCertificateChainFile {{ koha_apache_ssl_chain }}
|
SSLCertificateKeyFile {{ koha_apache_ssl_key }}
|
||||||
|
SSLCertificateChainFile {{ koha_apache_ssl_chain }}
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
ErrorDocument 400 /cgi-bin/koha/errors/400.pl
|
ErrorDocument 400 /cgi-bin/koha/errors/400.pl
|
||||||
ErrorDocument 401 /cgi-bin/koha/errors/401.pl
|
ErrorDocument 401 /cgi-bin/koha/errors/401.pl
|
||||||
|
|||||||
@@ -19,12 +19,14 @@
|
|||||||
|
|
||||||
Include /etc/koha/apache-shared-opac-plack.conf
|
Include /etc/koha/apache-shared-opac-plack.conf
|
||||||
|
|
||||||
SSLEngine on
|
<IfModule mod_ssl>
|
||||||
SSLProtocol all -SSLv2
|
SSLEngine on
|
||||||
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
|
SSLProtocol all -SSLv2
|
||||||
SSLCertificateFile {{ koha_apache_ssl_cert }}
|
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
|
||||||
SSLCertificateKeyFile {{ koha_apache_ssl_key }}
|
SSLCertificateFile {{ koha_apache_ssl_cert }}
|
||||||
SSLCertificateChainFile {{ koha_apache_ssl_chain }}
|
SSLCertificateKeyFile {{ koha_apache_ssl_key }}
|
||||||
|
SSLCertificateChainFile {{ koha_apache_ssl_chain }}
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
<Directory "{{ koha_install_dir }}/opac/htdocs">
|
<Directory "{{ koha_install_dir }}/opac/htdocs">
|
||||||
Options -Indexes
|
Options -Indexes
|
||||||
|
|||||||
Reference in New Issue
Block a user