From c8de512a98462327b909311d2f89c90c32fb9246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 1 Oct 2022 22:28:22 +0200 Subject: chore: migrate package install in distinct roles --- roles/workstation/tasks/dockerd.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'roles/workstation/tasks/dockerd.yml') 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 -- cgit v1.2.3