From 8b6aba5dbc887dd212922cfdc52d1dd31ca64006 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Thu, 31 Aug 2023 00:44:36 +0200 Subject: [PATCH] Fix docker for arch --- roles/docker/tasks/install-arch.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/docker/tasks/install-arch.yml b/roles/docker/tasks/install-arch.yml index 7a6dbd9..253ccb3 100644 --- a/roles/docker/tasks/install-arch.yml +++ b/roles/docker/tasks/install-arch.yml @@ -5,3 +5,17 @@ name: - docker - docker-compose + +- name: "Enable service" + become: yes + ansible.builtin.systemd: + name: docker + state: started + enabled: yes + +- name: add current user to docker group + become: yes + user: + name: "{{ ansible_user_id }}" + append: yes + groups: docker