Last active
September 24, 2018 20:11
-
-
Save kravietz/54ea1c7ad3bd3895ce47d14f2bd4d443 to your computer and use it in GitHub Desktop.
Installing Docker 18 using Ansible on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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