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