mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update install.yml
This commit is contained in:
parent
00bcb85924
commit
ef48d49b88
1 changed files with 27 additions and 20 deletions
|
@ -1,13 +1,17 @@
|
||||||
# This is for an OS other than Fedora 18
|
# This is for an OS other than Fedora 18
|
||||||
|
|
||||||
- name: Install missing packages required for KA Lite startup
|
- name: Install missing packages required for KA Lite startup
|
||||||
package: name={{ item }}
|
package:
|
||||||
state=present
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
with_items:
|
with_items:
|
||||||
- python-virtualenv
|
- python-virtualenv
|
||||||
|
|
||||||
- name: Grab the requirements file
|
- name: Grab the requirements file
|
||||||
get_url: url={{ kalite_requirements }} dest={{ pip_packages_dir }}/kalite.txt
|
get_url:
|
||||||
|
url: "{{ kalite_requirements }}"
|
||||||
|
dest: "{{ pip_packages_dir }}/kalite.txt"
|
||||||
|
timeout: "{{ download_timeout }}"
|
||||||
when: internet_available
|
when: internet_available
|
||||||
|
|
||||||
#- name: Install KA Lite non-static + reqs file with pip - (debuntu)
|
#- name: Install KA Lite non-static + reqs file with pip - (debuntu)
|
||||||
|
@ -19,11 +23,12 @@
|
||||||
# when: internet_available and is_debuntu
|
# when: internet_available and is_debuntu
|
||||||
|
|
||||||
- name: Install KA Lite static with pip - (debuntu)
|
- name: Install KA Lite static with pip - (debuntu)
|
||||||
pip: name=ka-lite-static
|
pip:
|
||||||
version={{ kalite_version }}
|
name: ka-lite-static
|
||||||
virtualenv={{ kalite_venv }}
|
version: "{{ kalite_version }}"
|
||||||
virtualenv_site_packages=no
|
virtualenv: "{{ kalite_venv }}"
|
||||||
extra_args="--no-cache-dir"
|
virtualenv_site_packages: no
|
||||||
|
extra_args: "--no-cache-dir"
|
||||||
# extra_args="--disable-pip-version-check"
|
# extra_args="--disable-pip-version-check"
|
||||||
when: internet_available and is_debuntu
|
when: internet_available and is_debuntu
|
||||||
|
|
||||||
|
@ -36,30 +41,32 @@
|
||||||
# when: internet_available and not is_debuntu
|
# when: internet_available and not is_debuntu
|
||||||
|
|
||||||
- name: Install KA Lite static with pip - (OS's other than debuntu)
|
- name: Install KA Lite static with pip - (OS's other than debuntu)
|
||||||
pip: name=ka-lite-static
|
pip:
|
||||||
version={{ kalite_version }}
|
name: ka-lite-static
|
||||||
virtualenv={{ kalite_venv }}
|
version: "{{ kalite_version }}"
|
||||||
virtualenv_site_packages=no
|
virtualenv: "{{ kalite_venv }}"
|
||||||
|
virtualenv_site_packages: no
|
||||||
# extra_args="--no-cache-dir"
|
# extra_args="--no-cache-dir"
|
||||||
# extra_args="--disable-pip-version-check"
|
# extra_args="--disable-pip-version-check"
|
||||||
when: internet_available and not is_debuntu
|
when: internet_available and not is_debuntu
|
||||||
|
|
||||||
- name: Default is to have cronserve started with KA Lite
|
- name: Default is to have cronserve started with KA Lite
|
||||||
set_fact:
|
set_fact:
|
||||||
job_scheduler_stanza: ""
|
job_scheduler_stanza: ""
|
||||||
|
|
||||||
- name: Add --skip-job-scheduler to start if cronserve not enabled
|
- name: Add --skip-job-scheduler to start if cronserve not enabled
|
||||||
set_fact:
|
set_fact:
|
||||||
job_scheduler_stanza: "--skip-job-scheduler "
|
job_scheduler_stanza: "--skip-job-scheduler "
|
||||||
when: not kalite_cron_enabled
|
when: not kalite_cron_enabled
|
||||||
|
|
||||||
- name: Create 'kalite-serve' service, kalite.sh and kalite.conf
|
- name: Create 'kalite-serve' service, kalite.sh and kalite.conf
|
||||||
template: backup=no
|
template:
|
||||||
src={{ item.src }}
|
backup: no
|
||||||
dest={{ item.dest }}
|
src: "{{ item.src }}"
|
||||||
owner=root
|
dest: "{{ item.dest }}"
|
||||||
group=root
|
owner: root
|
||||||
mode={{ item.mode }}
|
group: root
|
||||||
|
mode: "{{ item.mode }}"
|
||||||
with_items:
|
with_items:
|
||||||
- { src: 'kalite-serve.service.j2', dest: '/etc/systemd/system/kalite-serve.service', mode: '0644'}
|
- { src: 'kalite-serve.service.j2', dest: '/etc/systemd/system/kalite-serve.service', mode: '0644'}
|
||||||
- { src: 'kalite.sh.j2', dest: '/usr/bin/kalite', mode: '0755'}
|
- { src: 'kalite.sh.j2', dest: '/usr/bin/kalite', mode: '0755'}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue