Skip to content

Commit

Permalink
add docker install tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanbekker authored Jun 14, 2018
1 parent 8cb458f commit c26ca8b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions roles/docker-installation/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
- name: Install Docker Dependencies
apt: name={{ item }} state=latest update_cache=yes
with_items:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
tags: docker

- name: Get Docker key
apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
state: present
tags: docker

- name: Ddd Docker packages to Repository
apt_repository:
repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ ansible_lsb.codename|lower }} stable
tags: docker

- name: Install Docker-CE
apt: name="docker-ce" state=latest update_cache=yes
tags: docker

0 comments on commit c26ca8b

Please sign in to comment.