Commit 99219339 authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Include support for ubuntu 16.04

parent 674ba3a7
Pipeline #1378 skipped
...@@ -42,7 +42,7 @@ fi ...@@ -42,7 +42,7 @@ fi
# Warn users who aren't on an explicitly supported distro, but allow them to # Warn users who aren't on an explicitly supported distro, but allow them to
# override check and attempt installation with ``export FORCE=yes`` # override check and attempt installation with ``export FORCE=yes``
if [[ ! ${DISTRO} =~ (wheezy|jessie|trusty|vivid|rhel7|rhel6|LinuxMint-17.2) ]]; then if [[ ! ${DISTRO} =~ (wheezy|jessie|trusty|vivid|xenial|rhel7|rhel6|LinuxMint-17.2) ]]; then
echo "WARNING: this script has not been tested on $DISTRO" echo "WARNING: this script has not been tested on $DISTRO"
if [[ "$FORCE" != "yes" ]]; then if [[ "$FORCE" != "yes" ]]; then
die $LINENO "If you wish to run this script anyway run with FORCE=yes" die $LINENO "If you wish to run this script anyway run with FORCE=yes"
......
...@@ -54,6 +54,14 @@ ...@@ -54,6 +54,14 @@
apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_15.04/ ./' state=present apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_15.04/ ./' state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "15.04" when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "15.04"
- name: Install Ubuntu 16.04 repository key
apt_key: url={{ base_open_build_url }}/xUbuntu_16.04/Release.key state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "16.04"
- name: Install Ubuntu 16.04 repository
apt_repository: repo='deb {{ base_open_build_url }}/xUbuntu_16.04/ ./' state=present
when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "16.04"
- name: Install CentOS 7 Repository - name: Install CentOS 7 Repository
get_url: url=http://download.opensuse.org/repositories/home:/VIFIBnexedi/CentOS_7/home:VIFIBnexedi.repo dest=/etc/yum.repos.d/slapos.repo mode=0440 get_url: url=http://download.opensuse.org/repositories/home:/VIFIBnexedi/CentOS_7/home:VIFIBnexedi.repo dest=/etc/yum.repos.d/slapos.repo mode=0440
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment