mise au point config apache, y compris certificats
This commit is contained in:
37
tasks/apache.yml
Normal file
37
tasks/apache.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
- name: install apache itk
|
||||
apt:
|
||||
name: libapache2-mpm-itk
|
||||
state: present
|
||||
|
||||
- name: activate required modules
|
||||
apache2_module:
|
||||
state: present
|
||||
name: "{{ item }}"
|
||||
loop:
|
||||
- rewrite
|
||||
- proxy
|
||||
- proxy_http
|
||||
- ssl
|
||||
- cgi
|
||||
notify: reload apache
|
||||
|
||||
- name: configuration
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/apache2/sites-enabled/
|
||||
notify: reload apache
|
||||
loop:
|
||||
- apache-intranet.conf
|
||||
- apache-opac.conf
|
||||
|
||||
- name: configuration - shared files
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: "{{ koha_install_dir }}/etc/"
|
||||
loop:
|
||||
- apache-shared-api-acl.conf
|
||||
- apache-shared-intranet-plack.conf
|
||||
- apache-shared-opac-plack.conf
|
||||
notify: reload apache
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
- Makefile
|
||||
- MYMETA.json
|
||||
- MYMETA.yml
|
||||
register: result
|
||||
|
||||
- name: make && & make install
|
||||
tags: wip
|
||||
@@ -67,6 +68,7 @@
|
||||
- make install
|
||||
args:
|
||||
chdir: "{{ koha_src_dir }}"
|
||||
when: result.changed
|
||||
|
||||
- name: configure environment
|
||||
template:
|
||||
@@ -80,13 +82,9 @@
|
||||
state: link
|
||||
|
||||
- name: configure apache
|
||||
template:
|
||||
src:
|
||||
dest: /etc/apache/sites-enabled/
|
||||
notify: reload apache
|
||||
loop:
|
||||
- apache-intranet.conf
|
||||
- apache-opac.conf
|
||||
import_tasks: apache.yml
|
||||
tags: apache
|
||||
|
||||
|
||||
|
||||
- name: configure plack
|
||||
import_tasks: plack.yml
|
||||
tags: plack
|
||||
|
||||
13
tasks/plack.yml
Normal file
13
tasks/plack.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
- name: deploy plack service
|
||||
template:
|
||||
src: plack-opac.service
|
||||
dest: /etc/systemd/system/
|
||||
notify: reload systemd
|
||||
|
||||
- name: start and activate plack service
|
||||
systemd:
|
||||
name: plack-opac.service
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user