1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #107 from iiab/master

sync from iiab/iiab
This commit is contained in:
A Holt 2018-07-17 01:01:47 -04:00 committed by GitHub
commit 11ed10988f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 15 deletions

View file

@ -22,8 +22,9 @@
when: udev_unit.stat.exists is defined and udev_unit.stat.exists when: udev_unit.stat.exists is defined and udev_unit.stat.exists
# ubuntu 16.04 comes with ansible 2.0.0.2 -- no systemd module # ubuntu 16.04 comes with ansible 2.0.0.2 -- no systemd module
- name: Ask systemd to recognize the changes - name: Ask systemd to reread unit files (daemon-reload)
shell: systemctl daemon-reload systemd:
daemon_reload: yes
when: udev_unit.stat.exists is defined and udev_unit.stat.exists when: udev_unit.stat.exists is defined and udev_unit.stat.exists
- name: Restart so systemd recognizes the changes - name: Restart so systemd recognizes the changes

View file

@ -23,8 +23,9 @@
- include_tasks: install.yml - include_tasks: install.yml
when: kalite_installed is defined and not kalite_installed.stat.exists and not is_F18 when: kalite_installed is defined and not kalite_installed.stat.exists and not is_F18
- name: Ask systemd to reread the unit files - name: Ask systemd to reread unit files (daemon-reload)
shell: systemctl daemon-reload systemd:
daemon_reload: yes
when: not kalite_installed.stat.exists when: not kalite_installed.stat.exists
- include_tasks: setup-f18.yml - include_tasks: setup-f18.yml

View file

@ -26,7 +26,7 @@
extra_args: --no-cache-dir extra_args: --no-cache-dir
when: internet_available when: internet_available
- name: Create kolibri systemd service file - name: Create kolibri systemd service unit file
template: template:
src: "{{ item.src }}" src: "{{ item.src }}"
dest: "{{ item.dest }}" dest: "{{ item.dest }}"
@ -34,7 +34,11 @@
owner: root owner: root
group: root group: root
with_items: with_items:
- { src: 'kolibri.service.j2' , dest: '/etc/systemd/system/kolibri.service', mode: '0644' } - { src: 'kolibri.service.j2', dest: '/etc/systemd/system/kolibri.service', mode: '0644' }
- name: Ask systemd to reread unit files (daemon-reload)
systemd:
daemon_reload: yes
- name: Set kolibri default language - name: Set kolibri default language
shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" language setdefault "{{ kolibri_language }}" shell: export KOLIBRI_HOME="{{ kolibri_home }}" && "{{ kolibri_exec_path }}" language setdefault "{{ kolibri_language }}"
@ -59,20 +63,16 @@
- name: Enable kolibri service - name: Enable kolibri service
service: service:
name: "{{ item.name }}" name: kolibri
enabled: yes enabled: yes
state: restarted state: restarted
with_items:
- { name: kolibri }
when: kolibri_enabled when: kolibri_enabled
- name: Disable kolibri service - name: Disable kolibri service
service: service:
name: "{{ item.name }}" name: kolibri
enabled: no enabled: no
state: stopped state: stopped
with_items:
- { name: kolibri }
when: not kolibri_enabled when: not kolibri_enabled
- name: Add 'kolibri' to list of services at /etc/iiab/iiab.ini - name: Add 'kolibri' to list of services at /etc/iiab/iiab.ini