aboutsummaryrefslogtreecommitdiffstats
path: root/roles/workstation/tasks/dockerd.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-01 22:28:22 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-01 22:28:55 +0200
commitc8de512a98462327b909311d2f89c90c32fb9246 (patch)
treedf11ba3e4c005644e1a4a9c61b8790523333a6ee /roles/workstation/tasks/dockerd.yml
parente91ac09b9ed3d3768b99315c13366da23a13a3fa (diff)
downloadrules-c8de512a98462327b909311d2f89c90c32fb9246.tar.gz
chore: migrate package install in distinct roles
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.