2017-05-27 18:09:50 +00:00
|
|
|
# This is for an OS other than Fedora 18
|
|
|
|
|
2017-11-05 06:01:26 +00:00
|
|
|
- name: Install missing packages required for KA Lite startup
|
2017-05-27 18:09:50 +00:00
|
|
|
package: name={{ item }}
|
|
|
|
state=present
|
|
|
|
with_items:
|
2017-09-17 18:07:34 +00:00
|
|
|
- python-virtualenv
|
|
|
|
|
2017-09-19 03:33:20 +00:00
|
|
|
- name: Grab the requirements file
|
2017-09-17 18:07:34 +00:00
|
|
|
get_url: url={{ kalite_requirements }} dest={{ pip_packages_dir }}/kalite.txt
|
2017-10-03 16:21:49 +00:00
|
|
|
when: internet_available
|
2017-09-17 18:07:34 +00:00
|
|
|
|
2017-11-08 18:46:06 +00:00
|
|
|
#- name: Install KA Lite non-static + reqs file with pip - (debuntu)
|
2017-11-08 01:07:52 +00:00
|
|
|
# pip: requirements={{ pip_packages_dir }}/kalite.txt
|
|
|
|
# virtualenv={{ kalite_venv }}
|
|
|
|
# virtualenv_site_packages=no
|
|
|
|
# extra_args="--no-cache-dir"
|
2017-09-28 04:35:19 +00:00
|
|
|
# extra_args="--disable-pip-version-check"
|
2017-11-08 01:07:52 +00:00
|
|
|
# when: internet_available and is_debuntu
|
2017-09-17 18:07:34 +00:00
|
|
|
|
2017-11-08 01:07:52 +00:00
|
|
|
- name: Install KA Lite static with pip - (debuntu)
|
2017-09-17 18:07:34 +00:00
|
|
|
pip: name=ka-lite-static
|
|
|
|
version={{ kalite_version }}
|
|
|
|
virtualenv={{ kalite_venv }}
|
|
|
|
virtualenv_site_packages=no
|
2017-10-18 22:20:17 +00:00
|
|
|
extra_args="--no-cache-dir"
|
2017-09-28 04:35:19 +00:00
|
|
|
# extra_args="--disable-pip-version-check"
|
2017-10-19 00:54:28 +00:00
|
|
|
when: internet_available and is_debuntu
|
|
|
|
|
2017-11-08 18:46:06 +00:00
|
|
|
#- name: Install KA Lite non-static + reqs file with pip - (OS's other than debuntu)
|
2017-11-08 01:07:52 +00:00
|
|
|
# pip: requirements={{ pip_packages_dir }}/kalite.txt
|
|
|
|
# virtualenv={{ kalite_venv }}
|
|
|
|
# virtualenv_site_packages=no
|
2017-10-19 00:54:28 +00:00
|
|
|
# extra_args="--no-cache-dir"
|
|
|
|
# extra_args="--disable-pip-version-check"
|
2017-11-08 01:07:52 +00:00
|
|
|
# when: internet_available and not is_debuntu
|
2017-10-19 00:54:28 +00:00
|
|
|
|
2017-11-08 01:07:52 +00:00
|
|
|
- name: Install KA Lite static with pip - (OS's other than debuntu)
|
2017-10-19 00:54:28 +00:00
|
|
|
pip: name=ka-lite-static
|
|
|
|
version={{ kalite_version }}
|
|
|
|
virtualenv={{ kalite_venv }}
|
|
|
|
virtualenv_site_packages=no
|
|
|
|
# extra_args="--no-cache-dir"
|
|
|
|
# extra_args="--disable-pip-version-check"
|
|
|
|
when: internet_available and not is_debuntu
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-11-05 06:01:26 +00:00
|
|
|
- name: Default is to have cronserve started with KA Lite
|
2017-05-27 18:09:50 +00:00
|
|
|
set_fact:
|
|
|
|
job_scheduler_stanza: ""
|
|
|
|
|
2017-09-19 03:33:20 +00:00
|
|
|
- name: Add --skip-job-scheduler to start if cronserve not enabled
|
2017-05-27 18:09:50 +00:00
|
|
|
set_fact:
|
|
|
|
job_scheduler_stanza: "--skip-job-scheduler "
|
|
|
|
when: not kalite_cron_enabled
|
|
|
|
|
2017-11-05 06:01:26 +00:00
|
|
|
- name: Create 'kalite-serve' service, kalite.sh and kalite.conf
|
2017-09-17 18:07:34 +00:00
|
|
|
template: backup=no
|
2017-05-27 18:09:50 +00:00
|
|
|
src={{ item.src }}
|
|
|
|
dest={{ item.dest }}
|
|
|
|
owner=root
|
|
|
|
group=root
|
|
|
|
mode={{ item.mode }}
|
|
|
|
with_items:
|
|
|
|
- { src: 'kalite-serve.service.j2', dest: '/etc/systemd/system/kalite-serve.service', mode: '0644'}
|
2017-11-16 09:03:34 +00:00
|
|
|
- { src: 'kalite.sh.j2', dest: '/usr/bin/kalite', mode: '0755'}
|
2017-10-20 04:36:10 +00:00
|
|
|
- { src: 'kalite.conf', dest: '/etc/{{ apache_config_dir }}', mode: '0644'}
|