correction pb permissions sur rep run et log
ajout var environnement pour plack reorganisation des taches apache
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
# defaults file for tco.koha
|
# defaults file for tco.koha
|
||||||
|
|
||||||
koha_version: 21.05.05
|
koha_version: 21.05.07
|
||||||
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 }}"
|
||||||
|
|||||||
@@ -4,19 +4,6 @@
|
|||||||
name: libapache2-mpm-itk
|
name: libapache2-mpm-itk
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: activate required modules
|
|
||||||
apache2_module:
|
|
||||||
state: present
|
|
||||||
name: "{{ item }}"
|
|
||||||
loop:
|
|
||||||
- rewrite
|
|
||||||
- proxy
|
|
||||||
- proxy_http
|
|
||||||
- ssl
|
|
||||||
- headers
|
|
||||||
- cgi
|
|
||||||
notify: reload apache
|
|
||||||
|
|
||||||
- name: configuration
|
- name: configuration
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
@@ -36,3 +23,16 @@
|
|||||||
- apache-shared-opac-plack.conf
|
- apache-shared-opac-plack.conf
|
||||||
notify: reload apache
|
notify: reload apache
|
||||||
|
|
||||||
|
- name: activate required modules
|
||||||
|
apache2_module:
|
||||||
|
state: present
|
||||||
|
name: "{{ item }}"
|
||||||
|
loop:
|
||||||
|
- rewrite
|
||||||
|
- proxy
|
||||||
|
- proxy_http
|
||||||
|
- ssl
|
||||||
|
- headers
|
||||||
|
- cgi
|
||||||
|
notify: reload apache
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
owner: koha
|
owner: koha
|
||||||
group: www-data
|
group: www-data
|
||||||
recurse: yes
|
recurse: yes
|
||||||
mode: 1775
|
mode: 01775
|
||||||
loop:
|
loop:
|
||||||
- "{{ koha_install_dir }}/var/log"
|
- "{{ koha_install_dir }}/var/log"
|
||||||
- "{{ koha_install_dir }}/var/run"
|
- "{{ koha_install_dir }}/var/run"
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ After=network.target remote-fs.target nss-lookup.target
|
|||||||
[Service]
|
[Service]
|
||||||
Environment="KOHA_CONF={{ koha_install_dir }}/etc/koha-conf.xml"
|
Environment="KOHA_CONF={{ koha_install_dir }}/etc/koha-conf.xml"
|
||||||
Environment="PERL5LIB={{ koha_install_dir }}/lib"
|
Environment="PERL5LIB={{ koha_install_dir }}/lib"
|
||||||
|
KOHA_HOME={{ koha_install_dir }}
|
||||||
Type=forking
|
Type=forking
|
||||||
User=root
|
User=root
|
||||||
ExecStart={{ koha_install_dir }}/bin/plack/koha-plack --start foobar
|
ExecStart={{ koha_install_dir }}/bin/plack/koha-plack --start foobar
|
||||||
|
|||||||
Reference in New Issue
Block a user