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

Tighter messaging

This commit is contained in:
A Holt 2017-11-05 01:10:13 -05:00 committed by GitHub
parent 1c8110c7e9
commit 9ae9b71690
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,39 +2,39 @@
# Assume all XOs are F18 and nothing else is # Assume all XOs are F18 and nothing else is
- name: Calc kalite db file name F18 - name: Calc KA Lite db file name (Fedora 18)
set_fact: set_fact:
kalite_db_name: "{{ kalite_root }}/kalite/database/data.sqlite" kalite_db_name: "{{ kalite_root }}/kalite/database/data.sqlite"
when: is_F18 when: is_F18
- name: Calc kalite db file name - name: Calc KA Lite db file name (OS's other than Fedora 18)
set_fact: set_fact:
kalite_db_name: "{{ kalite_root }}/database/data.sqlite" kalite_db_name: "{{ kalite_root }}/database/data.sqlite"
when: not is_F18 when: not is_F18
- name: See if kalite is already configured - name: See if KA Lite is already configured
stat: path="{{ kalite_db_name }}" stat: path="{{ kalite_db_name }}"
register: kalite_installed register: kalite_installed
- include: install-f18.yml - include_tasks: install-f18.yml
when: not kalite_installed.stat.exists and is_F18 when: not kalite_installed.stat.exists and is_F18
- include: 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 the unit files
shell: systemctl daemon-reload shell: systemctl daemon-reload
when: not kalite_installed.stat.exists when: not kalite_installed.stat.exists
- include: setup-f18.yml - include_tasks: setup-f18.yml
when: not kalite_installed.stat.exists and is_F18 when: not kalite_installed.stat.exists and is_F18
- include: setup.yml - include_tasks: setup.yml
when: not kalite_installed.stat.exists and not is_F18 when: not kalite_installed.stat.exists and not is_F18
- include: enable.yml - include_tasks: enable.yml
- name: Add kalite to service list - name: Add 'kalite-serve' to service list
ini_file: dest='{{ service_filelist }}' ini_file: dest='{{ service_filelist }}'
section=kalite section=kalite
option='{{ item.option }}' option='{{ item.option }}'
@ -43,7 +43,7 @@
- option: name - option: name
value: kalite value: kalite
- option: description - option: description
value: '"KA-Lite is a server to present Khan Academy videos offline and to download them."' value: '"KA Lite is a server to present Khan Academy videos offline and to download them."'
- option: path - option: path
value: "{{ kalite_root }}" value: "{{ kalite_root }}"
- option: server_name - option: server_name