diff --git a/roles/2-common/tasks/centos.yml b/roles/2-common/tasks/centos.yml index 31e992924..5db9cbc68 100644 --- a/roles/2-common/tasks/centos.yml +++ b/roles/2-common/tasks/centos.yml @@ -18,6 +18,7 @@ with_items: - iiab-centos.repo - li.nux.ro.repo + - ansible.repo #- name: Disable updating ansible on CentOS # shell: sed -i -e '/^enabled=/a exclude=ansible' {{ item }} diff --git a/roles/2-common/templates/ansible.repo b/roles/2-common/templates/ansible.repo new file mode 100644 index 000000000..ea7a0120d --- /dev/null +++ b/roles/2-common/templates/ansible.repo @@ -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 diff --git a/roles/kalite/tasks/install.yml b/roles/kalite/tasks/install.yml index af064b584..40169dc8b 100644 --- a/roles/kalite/tasks/install.yml +++ b/roles/kalite/tasks/install.yml @@ -15,8 +15,9 @@ virtualenv={{ kalite_venv }} virtualenv_site_packages=no extra_args="--no-cache-dir" +# extra_args="--no-cache-dir" # extra_args="--disable-pip-version-check" - when: internet_available + when: internet_available and is_debuntu - name: Install ka-lite with pip pip: name=ka-lite-static @@ -24,8 +25,26 @@ virtualenv={{ kalite_venv }} virtualenv_site_packages=no extra_args="--no-cache-dir" +# extra_args="--no-cache-dir" # 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 set_fact: diff --git a/roles/osm/tasks/main.yml b/roles/osm/tasks/main.yml index fa254d3d9..33039e02f 100644 --- a/roles/osm/tasks/main.yml +++ b/roles/osm/tasks/main.yml @@ -27,19 +27,39 @@ virtualenv={{ osm_venv }} virtualenv_site_packages=no version=2.6 - extra_args="--disable-pip-version-check --no-cache-dir" - when: internet_available + extra_args="--no-cache-dir" + when: internet_available and is_debuntu - name: Install IIAB with dependencies pip: name={{ item }} virtualenv={{ osm_venv }} virtualenv_site_packages=no - extra_args="--disable-pip-version-check --no-cache-dir" + extra_args="--no-cache-dir" with_items: - MarkupSafe - pytz - 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 set_fact: diff --git a/scripts/ansible b/scripts/ansible index bdced2c0f..19c56e6ad 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -42,8 +42,9 @@ fi if [ -f /etc/centos-release ]; then yum -y upgrade 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 http://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/ansible-2.4.0.0-1.el7.ans.noarch.rpm FOUND="yes" FAMILY="redhat" fi