geerlingguy / ansible-role-docker_arm

Ansible Role - Docker for ARM and Pi
MIT License
98 stars 29 forks source link

Primary group for user is changed to docker #8

Closed ejsmit closed 4 years ago

ejsmit commented 4 years ago

The current role currently uses the following to change the group membership:

  user:
    name: "{{ item }}"
    group: docker
    append: true
  with_items: "{{ docker_users }}"

which cause this to happen:

$ id
uid=1000(pi) gid=995(docker) groups=995(docker),4(adm),  ...

The group should be groups. This will leave the user in its original primary group (pi, gid 1000) and only add the user to the docker group.

I also checked your docker role. It correctly uses groups.

geerlingguy commented 4 years ago

You're correct, thanks for catching this oversight! I'll have this fixed ASAP.

geerlingguy commented 4 years ago

This is available in 3.1.0.