ansible/roles/docker/tasks/main.yml
Sam A. 5bcba6fa59 QoL changes for *Vim users (#144)
Co-authored-by: Sam Al-Sapti <sam@sapti.me>
Reviewed-on: #144
2022-12-29 21:13:31 +00:00

39 lines
743 B
YAML

# vim: ft=yaml.ansible
---
- name: add docker gpg key
apt_key:
keyserver: pgp.mit.edu
id: 8D81803C0EBFCD88
state: present
- name: add docker apt repository
apt_repository:
repo: deb https://download.docker.com/linux/ubuntu bionic stable
state: present
update_cache: yes
- name: install docker-ce
apt:
name: docker-ce
state: present
- name: install docker python bindings
pip:
executable: pip3
name: "{{ packages }}"
state: present
vars:
packages:
- docker
- docker-compose
- name: create folder structure for bind mounts
file:
name: "{{ volume_root_folder }}"
state: directory
- name: setup services
import_tasks: services.yml
tags:
- setup_services