From 03dde4fb2e0895c71dcc6046e27ffeb7e35f32ec Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 7 Dec 2016 23:26:11 +0200
Subject: [PATCH] - Adding Debian Wheezy and Ubuntu Precise as supported
 platforms.

---
 meta/main.yml  |  2 ++
 molecule.yml   | 20 ++++++++++++++++++--
 tasks/main.yml |  2 +-
 3 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/meta/main.yml b/meta/main.yml
index ca822fd..e527e1e 100644
--- a/meta/main.yml
+++ b/meta/main.yml
@@ -14,10 +14,12 @@ galaxy_info:
     - 6.0
   - name: Debian
     versions:
+    - wheezy
     - jessie
     - stretch
   - name: Ubuntu
     versions:
+    - precise
     - trusty
     - xenial
   galaxy_tags: [ ansible, python ]
diff --git a/molecule.yml b/molecule.yml
index cbf1ace..a2af594 100644
--- a/molecule.yml
+++ b/molecule.yml
@@ -18,10 +18,14 @@ vagrant:
     box: tmatilai/openbsd-5.6
   - name: openbsd60
     box: kaorimatz/openbsd-6.0-amd64
+  - name: precise
+    box: hashicorp/precise64
   - name: trusty
     box: ubuntu/trusty64
   - name: xenial
     box: ubuntu/xenial64
+  - name: wheezy
+    box: debian/wheezy64
   - name: jessie
     box: debian/jessie64
   instances:
@@ -36,9 +40,9 @@ vagrant:
 
 docker:
   containers:
-  - name: python27-xenial
+  - name: python27-precise
     image: ubuntu
-    image_version: xenial
+    image_version: precise
     environment:
         DEBIAN_FRONTEND: noninteractive
         container: docker
@@ -48,6 +52,18 @@ docker:
     environment:
         DEBIAN_FRONTEND: noninteractive
         container: docker
+  - name: python27-xenial
+    image: ubuntu
+    image_version: xenial
+    environment:
+        DEBIAN_FRONTEND: noninteractive
+        container: docker
+  - name: python27-wheezy
+    image: debian
+    image_version: wheezy
+    environment:
+        DEBIAN_FRONTEND: noninteractive
+        container: docker
   - name: python27-jessie
     image: debian
     image_version: jessie
diff --git a/tasks/main.yml b/tasks/main.yml
index c6070a1..994a9bb 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -4,7 +4,7 @@
   assert:
     that:
         - ansible_os_family in ['OpenBSD', 'Debian']
-        - ansible_distribution_release in ['5.6', '5.7', '5.8', '5.9', '6.0', 'trusty', 'xenial', 'jessie', 'stretch', 'NA']
+        - ansible_distribution_release in ['5.6', '5.7', '5.8', '5.9', '6.0', 'precise', 'trusty', 'xenial', 'wheezy', 'jessie', 'stretch', 'NA']
 
 - name: APT install
   when: ansible_pkg_mgr == 'apt'
-- 
GitLab