Added docker itself.

This commit is contained in:
Egon Rijpkema 2017-04-18 14:10:41 +02:00
parent e51384e956
commit a087b1fd50
2 changed files with 14 additions and 5 deletions

View File

@ -4,10 +4,7 @@
hosts: all # Should be specified of course
become: True
tasks:
- name: install docker packages
apt: pkg={{ item }} state=latest update_cache=yes
with_items:
- docker-engine
- include: tasks/docker.yml
- name: install service file.
template:
src: files/mysql.service
@ -19,5 +16,5 @@
command: systemctl daemon-reload
- name: make sure service is started
systemd:
name: mariadb.service
name: mysql.service
state: started

12
tasks/docker.yml Normal file
View File

@ -0,0 +1,12 @@
---
- 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
- apt:
name: docker-engine