hpc-cloud/roles/common/tasks/docker.yml

21 lines
452 B
YAML

---
- apt_key:
id: 58118E89F3A912897C070ADBF76221572C52609D
keyserver: hkp://p80.pool.sks-keyservers.net:80
state: present
- apt_repository:
repo: deb https://apt.dockerproject.org/repo ubuntu-xenial main
update_cache: yes
- name: install docker
apt: pkg={{ item }} state=latest
with_items:
- docker-engine
- python-docker
- name: make sure service is started
systemd:
name: docker.service
state: started