2022-12-28 15:38:33 +00:00
|
|
|
# vim: ft=yaml.ansible
|
2018-05-10 09:19:54 +00:00
|
|
|
---
|
|
|
|
- name: add docker gpg key
|
|
|
|
apt_key:
|
2019-02-09 13:59:45 +00:00
|
|
|
keyserver: pgp.mit.edu
|
2018-05-10 09:19:54 +00:00
|
|
|
id: 8D81803C0EBFCD88
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: add docker apt repository
|
|
|
|
apt_repository:
|
2019-02-09 13:59:45 +00:00
|
|
|
repo: deb https://download.docker.com/linux/ubuntu bionic stable
|
2018-05-10 09:19:54 +00:00
|
|
|
state: present
|
|
|
|
update_cache: yes
|
|
|
|
|
|
|
|
- name: install docker-ce
|
|
|
|
apt:
|
|
|
|
name: docker-ce
|
|
|
|
state: present
|
2018-06-23 15:22:44 +00:00
|
|
|
|
2022-12-22 18:13:29 +00:00
|
|
|
- name: install docker python bindings
|
2018-06-23 15:22:44 +00:00
|
|
|
pip:
|
2022-12-22 18:13:29 +00:00
|
|
|
executable: pip3
|
2022-12-22 17:20:25 +00:00
|
|
|
name: "{{ packages }}"
|
2022-12-22 18:13:29 +00:00
|
|
|
state: present
|
2022-12-22 17:20:25 +00:00
|
|
|
vars:
|
|
|
|
packages:
|
|
|
|
- docker
|
|
|
|
- docker-compose
|
2018-06-23 15:22:44 +00:00
|
|
|
|
2019-02-13 09:05:00 +00:00
|
|
|
- name: create folder structure for bind mounts
|
|
|
|
file:
|
|
|
|
name: "{{ volume_root_folder }}"
|
|
|
|
state: directory
|
|
|
|
|
2018-06-23 15:22:44 +00:00
|
|
|
- name: setup services
|
2019-01-19 13:56:23 +00:00
|
|
|
import_tasks: services.yml
|
|
|
|
tags:
|
|
|
|
- setup_services
|