1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
iiab/roles/kalite/tasks/main.yml

58 lines
1.7 KiB
YAML
Raw Normal View History

2017-05-27 18:09:50 +00:00
# Assessment logic removed 3/1/2017 TFM
# Assume all XOs are F18 and nothing else is
2018-08-31 01:02:24 +00:00
- name: Set KA Lite's SQLite filename (Fedora 18)
2017-05-27 18:09:50 +00:00
set_fact:
2018-07-09 18:48:15 +00:00
kalite_db_name: "{{ kalite_root }}/kalite/database/data.sqlite"
2017-05-27 18:09:50 +00:00
when: is_F18
2018-08-31 01:02:24 +00:00
- name: Set KA Lite's SQLite filename (OS's other than Fedora 18)
2017-05-27 18:09:50 +00:00
set_fact:
2018-07-09 18:48:15 +00:00
kalite_db_name: "{{ kalite_root }}/database/data.sqlite"
2017-05-27 18:09:50 +00:00
when: not is_F18
2018-10-31 06:11:21 +00:00
- name: Does KA Lite database {{ kalite_db_name }} exist? # See if KA Lite is already configured
2018-07-16 18:49:29 +00:00
stat:
path: "{{ kalite_db_name }}"
2017-05-27 18:09:50 +00:00
register: kalite_installed
2017-11-05 06:10:13 +00:00
- include_tasks: install-f18.yml
2017-05-27 18:09:50 +00:00
when: not kalite_installed.stat.exists and is_F18
2017-11-05 06:10:13 +00:00
- include_tasks: install.yml
2017-05-27 18:09:50 +00:00
when: kalite_installed is defined and not kalite_installed.stat.exists and not is_F18
2018-07-16 20:56:23 +00:00
- name: Ask systemd to reread unit files (daemon-reload)
2018-07-16 20:53:19 +00:00
systemd:
daemon_reload: yes
2017-05-27 18:09:50 +00:00
when: not kalite_installed.stat.exists
2017-11-05 06:10:13 +00:00
- include_tasks: setup-f18.yml
2017-05-27 18:09:50 +00:00
when: not kalite_installed.stat.exists and is_F18
2017-11-05 06:10:13 +00:00
- include_tasks: setup.yml
2017-05-27 18:09:50 +00:00
when: not kalite_installed.stat.exists and not is_F18
2017-11-05 06:10:13 +00:00
- include_tasks: enable.yml
2017-05-27 18:09:50 +00:00
2018-10-31 06:11:21 +00:00
- name: Add 'kalite' variable values to {{ iiab_ini_file }}
2017-11-27 01:21:04 +00:00
ini_file:
2018-10-31 06:11:21 +00:00
path: "{{ iiab_ini_file }}"
2017-11-27 01:21:04 +00:00
section: kalite
option: "{{ item.option }}"
value: "{{ item.value }}"
2017-05-27 18:09:50 +00:00
with_items:
2017-11-27 01:21:04 +00:00
- option: name
value: "KA Lite"
- option: description
2018-08-31 01:35:26 +00:00
value: '"KA Lite downloads Khan Academy videos for offline use, with exercises and accounts if students want to track their own progress."'
2017-11-27 01:21:04 +00:00
- option: path
value: "{{ kalite_root }}"
- option: port
value: "{{ kalite_server_port }}"
0.3 patch1 (#1377) * expand zim_versions_idx to include menuItem name, mediaCount, articleCount, size * create a stub menuItem if none exists * remember to change consumer of zim_version_idx in iiab-admin * comment out some debugging prints * do not change the name of a variable in iiab.ini * consistent variable names for *_enabled * start work on menus for enabled iiab roles * changes to display cups in home menu * remove reference to admin console which may not be installed * print error message * dict.get errors * handle undefined menuItem" * handle undefined menuItem again * some work on logos * break out the zim_versions_idx routines for use by update_menus in admin-console * remove old menuDef creation code * new variable names for zim_versions_idx * missing the tags data in zim_versions_idx * un-break-apart iiab-make-kiwix-lib.py * return an empty string * make size human_readable * getting console and iiab to work together on menus * add the new zim_date field to zim_versions_idx * get the latest into repo * found lost code iiab-make-kiwix-lib.py * Create Lokole admin user during setup * Add requested content to lokole readme Per iiab/iiab#1293 * Update default password * Add Lokole-IIAB user manual * Update default_vars.yml * Update local_vars_min.yml * Update local_vars_min.yml * Update local_vars_medium.yml * Update local_vars_min.yml * Update default_vars.yml * Update local_vars_big.yml * Update local_vars_medium.yml * Update default_vars.yml * Update default_vars.yml * Update local_vars_min.yml * Update local_vars_medium.yml * Update local_vars_big.yml * Update default_vars.yml * Update default_vars.yml * Update local_vars_big.yml * Update local_vars_medium.yml * Update local_vars_min.yml * Update default_vars.yml * Update local_vars_big.yml * Update local_vars_medium.yml * Update local_vars_min.yml * Change admin username to uppercase * Revert "Lokole: change admin to Admin per IIAB app norms" * Update main.yml * Update README.rst * Update capture-wsgi.py * Update main.yml * Update main.yml * Update default_vars.yml * Update local_vars_big.yml * Update local_vars_medium.yml * Update local_vars_min.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update default_vars.yml * Update local_vars_big.yml * Update local_vars_medium.yml * Update local_vars_min.yml * Address TODOs in Lokole documentation See https://github.com/ascoderu/opwen-webapp/issues/81 * Update main.yml * Update local_vars_big.yml * Update local_vars_medium.yml * Update local_vars_big.yml * Update local_vars_min.yml * Update default_vars.yml * expand zim_versions_idx to include menuItem name, mediaCount, articleCount, size * create a stub menuItem if none exists * remember to change consumer of zim_version_idx in iiab-admin * comment out some debugging prints * do not change the name of a variable in iiab.ini * consistent variable names for *_enabled * start work on menus for enabled iiab roles * changes to display cups in home menu * remove reference to admin console which may not be installed * print error message * dict.get errors * handle undefined menuItem" * handle undefined menuItem again * some work on logos * break out the zim_versions_idx routines for use by update_menus in admin-console * remove old menuDef creation code * new variable names for zim_versions_idx * missing the tags data in zim_versions_idx * un-break-apart iiab-make-kiwix-lib.py * return an empty string * make size human_readable * getting console and iiab to work together on menus * add the new zim_date field to zim_versions_idx * get the latest into repo * found lost code iiab-make-kiwix-lib.py
2019-01-10 22:26:47 +00:00
- option: kalite_enabled
2017-11-27 01:21:04 +00:00
value: "{{ kalite_enabled }}"
- option: cron_enabled
value: "{{ kalite_cron_enabled }}"