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