From a087b1fd504b80d277db32a5db1906fdce8cc8dd Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Tue, 18 Apr 2017 14:10:41 +0200 Subject: [PATCH] Added docker itself. --- mariadb.yml | 7 ++----- tasks/docker.yml | 12 ++++++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 tasks/docker.yml diff --git a/mariadb.yml b/mariadb.yml index 523155b..3952d18 100644 --- a/mariadb.yml +++ b/mariadb.yml @@ -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 diff --git a/tasks/docker.yml b/tasks/docker.yml new file mode 100644 index 0000000..6da4700 --- /dev/null +++ b/tasks/docker.yml @@ -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