Skip to content

Instantly share code, notes, and snippets.

@kravietz

kravietz/docker-ce.yml

Last active Sep 24, 2018
Embed
What would you like to do?
Installing Docker 18 using Ansible on Ubuntu
# taken from https://get.docker.com/
---
- apt_key:
url: https://download.docker.com/linux/ubuntu/gpg
- apt_repository:
repo: 'deb https://apt.dockerproject.org/repo ubuntu-{{ansible_distribution_release}} main'
state: absent
- apt_repository:
repo: 'deb https://download.docker.com/linux/ubuntu/ {{ansible_distribution_release}} stable'
- apt: name=docker-ce update_cache=yes
- apt: name=python-setuptools
- apt: name=python-pip
- pip: name=docker
- apt: name=git
- pip: name=docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment