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"
|
2019-05-24 22:33:10 +00:00
|
|
|
when: is_F18 | bool
|
2017-05-27 18:09:50 +00:00
|
|
|
|
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 }}"
|
2019-09-05 04:35:53 +00:00
|
|
|
register: test_kalite_installed
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-11-05 06:10:13 +00:00
|
|
|
- include_tasks: install-f18.yml
|
2019-09-05 04:35:53 +00:00
|
|
|
when: not test_kalite_installed.stat.exists and is_F18 and kalite_install
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-11-05 06:10:13 +00:00
|
|
|
- include_tasks: install.yml
|
2019-09-05 04:35:53 +00:00
|
|
|
when: test_kalite_installed is defined and not test_kalite_installed.stat.exists and not is_F18 and kalite_install
|
2017-05-27 18:09:50 +00:00
|
|
|
|
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
|
2019-09-05 04:35:53 +00:00
|
|
|
when: not test_kalite_installed.stat.exists
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-11-05 06:10:13 +00:00
|
|
|
- include_tasks: setup-f18.yml
|
2019-12-30 00:32:24 +00:00
|
|
|
when: not test_kalite_installed.stat.exists and is_F18 and kalite_install
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-11-05 06:10:13 +00:00
|
|
|
- include_tasks: setup.yml
|
2019-12-30 00:32:24 +00:00
|
|
|
when: not test_kalite_installed.stat.exists and not is_F18 and kalite_install
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-11-05 06:10:13 +00:00
|
|
|
- include_tasks: enable.yml
|
2019-09-05 04:35:53 +00:00
|
|
|
when: kalite_install or kalite_installed is defined
|