--- - name: Update apt cache ansible.builtin.apt: update_cache: yes - name: Install essential packages ansible.builtin.apt: name: - sudo - vim - curl - git - software-properties-common state: present - name: Ensure user is in docker group ansible.builtin.user: name: "{{ ansible_user }}" groups: docker append: yes