Created
July 5, 2016 00:52
-
-
Save banjocat/defe24cfd482d98a8ffd8e0da1b93b2c to your computer and use it in GitHub Desktop.
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
--- | |
- name: Install requirements | |
apt: name={{item}} | |
with_items: | |
- apt-transport-https | |
- ca-certificates | |
- python-pip | |
- name: Add apt key | |
apt_key: | |
keyserver: "hkp://p80.pool.sks-keyservers.net:80" | |
id: "58118E89F3A912897C070ADBF76221572C52609D" | |
- name: Add source list | |
apt_repository: | |
repo: "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | |
- name: Install docker | |
apt: name=docker-engine | |
- name: Install docker-py | |
pip: name=docker-py | |
- name: Start docker | |
service: name=docker state=started |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment