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