aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation/tasks/dockerd.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/workstation/tasks/dockerd.yml')
-rw-r--r--roles/workstation/tasks/dockerd.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/workstation/tasks/dockerd.yml b/roles/workstation/tasks/dockerd.yml
index dc1c268..df85dd5 100644
--- a/roles/workstation/tasks/dockerd.yml
+++ b/roles/workstation/tasks/dockerd.yml
@@ -1,3 +1,16 @@
+- name: install docker
+ package:
+ name:
+ - docker
+ - docker-compose
+ state: present
+
+- name: append current user to docker group
+ user:
+ name: "{{ workstation_user }}"
+ groups: "{{ workstation_docker_group }}"
+ append: true
+
- name: create docker directory
file:
path: /etc/docker
remember that computers suck.