Skip to content

Commit

Permalink
remove Ubuntu 12.04 support. Fixes #186
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Durivage committed Sep 19, 2017
1 parent 59595df commit b5f2e87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
7 changes: 0 additions & 7 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ role = File.basename(File.expand_path(File.dirname(__FILE__)))
ENV['ANSIBLE_ROLES_PATH'] = "../"

boxes = [
{
:name => "ubuntu-1204",
:box => "ubuntu/precise64",
:ip => '10.0.77.11',
:cpu => "33",
:ram => "256"
},
{
:name => "ubuntu-1404",
:box => "ubuntu/trusty64",
Expand Down
5 changes: 2 additions & 3 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
galaxy_info:
author: Paul Durivage
description: A comprehensive and (ideally) sane way to install Docker on Ubuntu 12.04+
description: A comprehensive and (ideally) sane way to install Docker on Ubuntu 14.04+
license: Apache v2.0
min_ansible_version: 2.2
platforms:
Expand All @@ -10,9 +10,9 @@ galaxy_info:
- jessie
- name: Ubuntu
versions:
- precise
- trusty
- xenial
- zesty
categories:
- development
- packaging
Expand All @@ -22,4 +22,3 @@ dependencies: []
# dependencies available via galaxy should be listed here.
# Be sure to remove the '[]' above if you add dependencies
# to this list.

4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
- name: "Include proper python vars file"
include_vars: "{{ python_vars_file }}"

- name: Fail if not a new release of Ubuntu
- name: Fail if not a supported release of Ubuntu
fail:
msg: "{{ ansible_distribution_version }} is not an acceptable version of Ubuntu for this role"
when: ansible_lsb.id|lower == "ubuntu" and ( ansible_distribution_version|version_compare('12.04', '<') or ansible_distribution_version|version_compare('12.10', '=') )
when: ansible_lsb.id|lower == "ubuntu" and ansible_distribution_version|version_compare('14.04', '<')

- name: Fail if not a new release of Debian
fail:
Expand Down

0 comments on commit b5f2e87

Please sign in to comment.