--- - name: Ensure docker users are added to the docker group. user: name: "{{ item }}" groups: docker append: true with_items: "{{ docker_users }}" register: adduser