mise au point, separation spec iep dans role separé

This commit is contained in:
2022-01-27 09:33:50 +01:00
parent ade28050af
commit 2d3c870470
7 changed files with 54 additions and 19 deletions

View File

@@ -33,6 +33,6 @@
- proxy_http
- ssl
- headers
- cgi
- cgid
notify: reload apache

View File

@@ -11,9 +11,23 @@
# - assert:
# that: result.stat.exists is false
- name: install prerequisites
tags: always
import_tasks: req.yml
- name: install memcached
import_tasks: memcached.yml
- name: configure koha repo for dependencies
block:
- apt_key:
url: https://debian.koha-community.org/koha/gpg.asc
state: present
- apt_repository:
filename: koha
repo: "deb http://debian.koha-community.org/koha stable main"
state: present
- name: create koha user
vars:
- kohapassword: $ANSIBLE_VAULT;1.1;AES256
@@ -26,7 +40,7 @@
name: koha
home: "{{ koha_home_dir }}"
create_home: yes
password: "{{ kohapassword | password_hash('sha512', ansible_hostname )}}"
password: "{{ kohapassword | password_hash('sha512',123456 | random( seed=ansible_hostname )|string)}}"
- name: get and extract archive
block:
@@ -50,7 +64,6 @@
name: "{{ koha_packages }}"
- name: deploy Makefile
tags: wip
template:
src: "{{ item }}"
dest: "{{ koha_src_dir }}"
@@ -61,7 +74,6 @@
register: result
- name: make && & make install
tags: wip
command: "{{ item }}"
loop:
- make
@@ -87,6 +99,11 @@
dest: /var/log/koha
state: link
- name: configure log rotation
template:
src: logrotate.koha
dest: /etc/logrotate.d/koha
- name: configure apache
import_tasks: apache.yml
tags: apache
@@ -96,14 +113,6 @@
tags: plack
- name: add fr translation
command: perl translate install fr-FR
args:
chdir: "{{ koha_install_dir }}/misc/translator/"
- name: fix permissions
file:
path: "{{ koha_install_dir }}"
@@ -123,10 +132,10 @@
- "{{ koha_install_dir }}/var/log"
- "{{ koha_install_dir }}/var/run"
# cronjob
# # zebra
# traduction
# cronjob
# # zebra
# traduction
# cronjob
# # zebra
# traduction
# cronjob
# # zebra
# traduction

7
tasks/req.yml Normal file
View File

@@ -0,0 +1,7 @@
---
- name: install mandatory packages
package:
state: present
name:
- git