mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
commit
7f9cccc2ef
5 changed files with 55 additions and 7 deletions
|
@ -18,6 +18,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- iiab-centos.repo
|
- iiab-centos.repo
|
||||||
- li.nux.ro.repo
|
- li.nux.ro.repo
|
||||||
|
- ansible.repo
|
||||||
|
|
||||||
#- name: Disable updating ansible on CentOS
|
#- name: Disable updating ansible on CentOS
|
||||||
# shell: sed -i -e '/^enabled=/a exclude=ansible' {{ item }}
|
# shell: sed -i -e '/^enabled=/a exclude=ansible' {{ item }}
|
||||||
|
|
7
roles/2-common/templates/ansible.repo
Normal file
7
roles/2-common/templates/ansible.repo
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[ansible]
|
||||||
|
name=ansible
|
||||||
|
failovermethod=priority
|
||||||
|
baseurl=http://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/
|
||||||
|
enabled=0
|
||||||
|
metadata_expire=1d
|
||||||
|
gpgcheck=0
|
|
@ -15,8 +15,9 @@
|
||||||
virtualenv={{ kalite_venv }}
|
virtualenv={{ kalite_venv }}
|
||||||
virtualenv_site_packages=no
|
virtualenv_site_packages=no
|
||||||
extra_args="--no-cache-dir"
|
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
|
when: internet_available and is_debuntu
|
||||||
|
|
||||||
- name: Install ka-lite with pip
|
- name: Install ka-lite with pip
|
||||||
pip: name=ka-lite-static
|
pip: name=ka-lite-static
|
||||||
|
@ -24,8 +25,26 @@
|
||||||
virtualenv={{ kalite_venv }}
|
virtualenv={{ kalite_venv }}
|
||||||
virtualenv_site_packages=no
|
virtualenv_site_packages=no
|
||||||
extra_args="--no-cache-dir"
|
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
|
when: internet_available and is_debuntu
|
||||||
|
|
||||||
|
- name: Install ka-lite dependencies with pip
|
||||||
|
pip: requirements={{ pip_packages_dir }}/kalite.txt
|
||||||
|
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
|
||||||
|
|
||||||
|
- name: Install ka-lite with pip
|
||||||
|
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
|
||||||
|
|
||||||
- name: Default is to have cronserve started with kalite
|
- name: Default is to have cronserve started with kalite
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -27,19 +27,39 @@
|
||||||
virtualenv={{ osm_venv }}
|
virtualenv={{ osm_venv }}
|
||||||
virtualenv_site_packages=no
|
virtualenv_site_packages=no
|
||||||
version=2.6
|
version=2.6
|
||||||
extra_args="--disable-pip-version-check --no-cache-dir"
|
extra_args="--no-cache-dir"
|
||||||
when: internet_available
|
when: internet_available and is_debuntu
|
||||||
|
|
||||||
- name: Install IIAB with dependencies
|
- name: Install IIAB with dependencies
|
||||||
pip: name={{ item }}
|
pip: name={{ item }}
|
||||||
virtualenv={{ osm_venv }}
|
virtualenv={{ osm_venv }}
|
||||||
virtualenv_site_packages=no
|
virtualenv_site_packages=no
|
||||||
extra_args="--disable-pip-version-check --no-cache-dir"
|
extra_args="--no-cache-dir"
|
||||||
with_items:
|
with_items:
|
||||||
- MarkupSafe
|
- MarkupSafe
|
||||||
- pytz
|
- pytz
|
||||||
- Internet-in-a-Box
|
- Internet-in-a-Box
|
||||||
when: internet_available
|
when: internet_available and is_debuntu
|
||||||
|
|
||||||
|
# IIAB wants a specific version do that first
|
||||||
|
- name: Install Whoosh 2.6
|
||||||
|
pip: name=whoosh
|
||||||
|
virtualenv={{ osm_venv }}
|
||||||
|
virtualenv_site_packages=no
|
||||||
|
version=2.6
|
||||||
|
# extra_args="--no-cache-dir"
|
||||||
|
when: internet_available and not is_debuntu
|
||||||
|
|
||||||
|
- name: Install IIAB with dependencies
|
||||||
|
pip: name={{ item }}
|
||||||
|
virtualenv={{ osm_venv }}
|
||||||
|
virtualenv_site_packages=no
|
||||||
|
# extra_args="--no-cache-dir"
|
||||||
|
with_items:
|
||||||
|
- MarkupSafe
|
||||||
|
- pytz
|
||||||
|
- Internet-in-a-Box
|
||||||
|
when: internet_available and not is_debuntu
|
||||||
|
|
||||||
- name: Set osm_path
|
- name: Set osm_path
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -42,8 +42,9 @@ fi
|
||||||
if [ -f /etc/centos-release ]; then
|
if [ -f /etc/centos-release ]; then
|
||||||
yum -y upgrade
|
yum -y upgrade
|
||||||
yum -y install ca-certificates nss epel-release
|
yum -y install ca-certificates nss epel-release
|
||||||
yum -y install ansible git bzip2 file findutils gzip hg svn sudo tar which unzip xz zip libselinux-python
|
yum -y install git bzip2 file findutils gzip hg svn sudo tar which unzip xz zip libselinux-python
|
||||||
yum -y install python-pip python-setuptools python-wheel patch
|
yum -y install python-pip python-setuptools python-wheel patch
|
||||||
|
yum -y install http://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/ansible-2.4.0.0-1.el7.ans.noarch.rpm
|
||||||
FOUND="yes"
|
FOUND="yes"
|
||||||
FAMILY="redhat"
|
FAMILY="redhat"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue