initial commit
Change-Id: I5063800f2ddaf90a350325a9186479c25f90f8e1
diff --git a/roles/docker/meta/main.yml b/roles/docker/meta/main.yml
new file mode 100644
index 0000000..bf39d8c
--- /dev/null
+++ b/roles/docker/meta/main.yml
@@ -0,0 +1,15 @@
+---
+galaxy_info:
+ author: Ciena Blueplanet
+ description: Docker Engine and Docker Compose
+ company: Ciena Blueplanet
+ license: Apache 2.0
+ min_ansible_version: 2.0
+ platforms:
+ - name: Ubuntu
+ versions:
+ - trusty
+ galaxy_tags:
+ - development
+ - system
+dependencies: []
diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml
new file mode 100644
index 0000000..6e7c5e6
--- /dev/null
+++ b/roles/docker/tasks/main.yml
@@ -0,0 +1,38 @@
+- name: Apt Information
+ become: yes
+ apt: name={{ item }} state=latest force=yes
+ with_items:
+ - apt-transport-https
+ - ca-certificates
+
+- name: Docker Apt Key
+ become: yes
+ apt_key:
+ keyserver: hkp://p80.pool.sks-keyservers.net:80
+ id: 58118E89F3A912897C070ADBF76221572C52609D
+
+- name: Docker repository
+ become: yes
+ apt_repository:
+ repo: deb https://apt.dockerproject.org/repo ubuntu-trusty main
+ update_cache: yes
+ state: present
+
+- name: Docker Engine
+ become: yes
+ apt:
+ name: docker-engine
+ state: latest
+ force: yes
+
+- name: Docker Compose
+ become: yes
+ get_url:
+ url: https://github.com/docker/compose/releases/download/1.4.1/docker-compose-Linux-x86_64
+ dest: /usr/local/bin/docker-compose
+
+- name: Docker Compose Permissions
+ become: yes
+ file:
+ path: /usr/local/bin/docker-compose
+ mode: 0755