summaryrefslogtreecommitdiffstats
path: root/opt/servers/roles/docker/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'opt/servers/roles/docker/tasks/main.yml')
-rw-r--r--opt/servers/roles/docker/tasks/main.yml41
1 files changed, 0 insertions, 41 deletions
diff --git a/opt/servers/roles/docker/tasks/main.yml b/opt/servers/roles/docker/tasks/main.yml
deleted file mode 100644
index 1cf3bea0..00000000
--- a/opt/servers/roles/docker/tasks/main.yml
+++ /dev/null
@@ -1,41 +0,0 @@
-- name: adding keys
- become: true
- apt_key: keyserver=hkp://p80.pool.sks-keyservers.net id=0X58118E89F3A912897C070ADBF76221572C52609D
-
-- name: adding entry for ubuntu
- become: true
- apt_repository: repo='deb https://apt.dockerproject.org/repo ubuntu-xenial main' state=present filename='docker'
- when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "16.04"
-
-- name: installing from docker repo
- become: true
- shell: apt-cache policy docker-engine
- when: ansible_distribution == "Ubuntu" and ansible_distribution_version== "16.04"
-
-- name: adding entry for ubuntu
- become: true
- apt_repository: repo='deb https://apt.dockerproject.org/repo ubuntu-trusty main' state=present filename='docker'
- when: ansible_distribution == "Ubuntu" and ansible_distribution_version == "14.04"
-
-- name: updating
- become: true
- apt: update_cache=yes
-
-- name: installing docker engine
- become: true
- apt: name=docker-engine
- notify:
- - starting docker service
-
-- name: install pip
- become: true
- apt: name={{item}} state=installed
- with_items:
- - python-dev
- - python-pip
-
-- name: install docker-py
- become: true
- pip:
- name: docker-py
- version: 1.7.0