diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-10-01 22:28:22 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-10-01 22:28:55 +0200 |
commit | c8de512a98462327b909311d2f89c90c32fb9246 (patch) | |
tree | df11ba3e4c005644e1a4a9c61b8790523333a6ee /roles/workstation/tasks/dockerd.yml | |
parent | e91ac09b9ed3d3768b99315c13366da23a13a3fa (diff) | |
download | rules-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.yml | 13 |
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 |