Skip to content

Instantly share code, notes, and snippets.



Last active Sep 24, 2018
What would you like to do?
Installing Docker 18 using Ansible on Ubuntu
# taken from
- apt_key:
- apt_repository:
repo: 'deb ubuntu-{{ansible_distribution_release}} main'
state: absent
- apt_repository:
repo: 'deb {{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