Added docker itself.
This commit is contained in:
parent
e51384e956
commit
a087b1fd50
@ -4,10 +4,7 @@
|
|||||||
hosts: all # Should be specified of course
|
hosts: all # Should be specified of course
|
||||||
become: True
|
become: True
|
||||||
tasks:
|
tasks:
|
||||||
- name: install docker packages
|
- include: tasks/docker.yml
|
||||||
apt: pkg={{ item }} state=latest update_cache=yes
|
|
||||||
with_items:
|
|
||||||
- docker-engine
|
|
||||||
- name: install service file.
|
- name: install service file.
|
||||||
template:
|
template:
|
||||||
src: files/mysql.service
|
src: files/mysql.service
|
||||||
@ -19,5 +16,5 @@
|
|||||||
command: systemctl daemon-reload
|
command: systemctl daemon-reload
|
||||||
- name: make sure service is started
|
- name: make sure service is started
|
||||||
systemd:
|
systemd:
|
||||||
name: mariadb.service
|
name: mysql.service
|
||||||
state: started
|
state: started
|
||||||
|
12
tasks/docker.yml
Normal file
12
tasks/docker.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user