Skip to content

Instantly share code, notes, and snippets.

@kravietz
Last active September 24, 2018 20:11
Show Gist options
  • Save kravietz/54ea1c7ad3bd3895ce47d14f2bd4d443 to your computer and use it in GitHub Desktop.
Save kravietz/54ea1c7ad3bd3895ce47d14f2bd4d443 to your computer and use it in GitHub Desktop.
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