mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Cleaner kolibri/tasks/install.yml
This commit is contained in:
parent
2eebe604fa
commit
1c0e5005d1
1 changed files with 3 additions and 5 deletions
|
@ -9,7 +9,7 @@
|
||||||
system: yes
|
system: yes
|
||||||
create_home: no
|
create_home: no
|
||||||
|
|
||||||
- name: Create directory {{ kolibri_home }} (for Kolibri content, configuration, sqlite3 databases)
|
- name: Create directory {{ kolibri_home }} for Kolibri content, configuration, sqlite3 databases ({{ kolibri_user }}:{{ apache_user }}, '0755')
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
path: "{{ kolibri_home }}" # /library/kolibri
|
path: "{{ kolibri_home }}" # /library/kolibri
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
KOLIBRI_USER: "{{ kolibri_user }}" # both can't hurt & Might Help Later
|
KOLIBRI_USER: "{{ kolibri_user }}" # both can't hurt & Might Help Later
|
||||||
when: internet_available | bool
|
when: internet_available | bool
|
||||||
|
|
||||||
- name: 'Install from templates: kolibri.service unit file for systemd & sites-available/kolibri.conf for Apache'
|
- name: 'Install from templates: /etc/systemd/system/kolibri.service & /etc/{{ apache_conf_dir }}/kolibri.conf'
|
||||||
template:
|
template:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
@ -58,14 +58,12 @@
|
||||||
# mode: '0644'
|
# mode: '0644'
|
||||||
with_items:
|
with_items:
|
||||||
- { src: 'kolibri.service.j2', dest: '/etc/systemd/system/kolibri.service' }
|
- { src: 'kolibri.service.j2', dest: '/etc/systemd/system/kolibri.service' }
|
||||||
- { src: 'kolibri.conf.j2', dest: '/etc/apache2/sites-available/kolibri.conf' }
|
- { src: 'kolibri.conf.j2', dest: '/etc/{{ apache_conf_dir }}/kolibri.conf' } # apache2/sites-available
|
||||||
|
|
||||||
# - name: Enable 'kolibri' systemd service (for reboots) but ensure it's stopped for Kolibri provisioning
|
|
||||||
- name: Stop 'kolibri' systemd service, for Kolibri provisioning (after daemon_reload)
|
- name: Stop 'kolibri' systemd service, for Kolibri provisioning (after daemon_reload)
|
||||||
systemd:
|
systemd:
|
||||||
name: kolibri
|
name: kolibri
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
# enabled: yes
|
|
||||||
state: stopped
|
state: stopped
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue