--- # Server/Docker: Install Docker and Docker-Compose # Variables: # - none - name: docker - Install ansible.builtin.include_tasks: "{{ item }}" with_first_found: - "docker-{{ ansible_distribution }}.{{ ansible_distribution_release }}.yml" - "docker-{{ ansible_distribution }}.yml" - "docker-{{ ansible_os_family }}.yml" # Other setup tasks - name: docker - Add standard user to docker group become: yes ansible.builtin.user: name: "{{ ansible_user_id }}" groups: docker append: yes