From 3c77aaeda3685dfe002c835f2bc971fff63075d8 Mon Sep 17 00:00:00 2001 From: Lenoctambule <106790775+lenoctambule@users.noreply.github.com> Date: Tue, 31 Mar 2026 20:33:38 +0200 Subject: [PATCH] fix: missing docker group + template error --- playbooks/install-docker.yml | 11 +++++++++-- {templates => playbooks/templates}/docker.sources.j2 | 0 2 files changed, 9 insertions(+), 2 deletions(-) rename {templates => playbooks/templates}/docker.sources.j2 (100%) diff --git a/playbooks/install-docker.yml b/playbooks/install-docker.yml index fa072b8..c30f28d 100644 --- a/playbooks/install-docker.yml +++ b/playbooks/install-docker.yml @@ -53,9 +53,16 @@ - docker-buildx-plugin - docker-compose-plugin force: true + ignore_errors: '{{ ansible_check_mode }}' - - name: Install + - name: Ensure group "docker" exists + ansible.builtin.group: + name: docker + state: present + + - name: Add user to group ansible.builtin.user: name: "{{ ansible_user_id }}" groups: docker - append: yes \ No newline at end of file + append: yes + ignore_errors: '{{ ansible_check_mode }}' \ No newline at end of file diff --git a/templates/docker.sources.j2 b/playbooks/templates/docker.sources.j2 similarity index 100% rename from templates/docker.sources.j2 rename to playbooks/templates/docker.sources.j2