2 - name: One way to avoid apt_key once it is removed from your distro
4 - name: check if keyring-file is present
6 path: /usr/share/keyrings/koha-keyring.gpg
8 - name: somerepo |no apt key
10 cmd: wget -qO - https://debian.koha-community.org/koha/gpg.asc | gpg --dearmor -o /usr/share/keyrings/koha-keyring.gpg
11 when: not stat_keyring.stat.exists
12 - name: check if repo-file is present
14 path: /etc/apt/sources.list.d/koha.list
16 - name: somerepo | apt source
17 ansible.builtin.apt_repository:
18 repo: "deb [signed-by=/usr/share/keyrings/koha-keyring.gpg] https://debian.koha-community.org/koha stable main"
21 when: not stat_repo.stat.exists
22 - name: install server specific packages
28 - name: edit config file
29 ansible.builtin.lineinfile:
30 path: /etc/koha/koha-sites.conf
32 line: 'DOMAIN="{{ koha_domain }}"'
33 - name: apache enable a2enmod rewrite
34 ansible.builtin.command:
35 cmd: /usr/sbin/a2enmod rewrite
36 # notify: restart apache
37 - name: apache enable a2enmod cgi
38 ansible.builtin.command:
39 cmd: /usr/sbin/a2enmod cgi
40 # notify: restart apache
41 - name: apache restart
42 ansible.builtin.command:
43 cmd: systemctl restart apache2
46 #- name: create library instance
47 # ansible.builtin.command:
48 # cmd: koha-create --create-db {{ koha_libraryname }}
51 - name: enable apache module for koha-plack
52 ansible.builtin.command:
53 cmd: a2enmod headers proxy_http
54 # notify: restart apache
57 #- name: enable koha-plack
58 # ansible.builtin.command:
59 # cmd: koha-plack --enable {{ koha_libraryname }}
60 # notify: restart apache
63 - name: start koha-plack
64 ansible.builtin.command:
65 cmd: koha-plack --start {{ koha_libraryname }}
66 # notify: restart apache
67 - name: apache restart
68 ansible.builtin.command:
69 cmd: systemctl restart apache2
71 # only once -> check how?
72 - name: install german language-pack
73 ansible.builtin.command:
74 cmd: koha-translate --install de-DE
77 # https://wiki.koha-community.org/wiki/Koha_on_Debian
78 # https://zefanjas.de/wie-man-koha-installiert-und-fuer-schulen-einrichtet-teil-1/