Commit Graph

7 Commits

Author SHA1 Message Date
Jeff Geerling
928fe893e9 PR #370: Style cleanup. 2022-09-05 21:32:10 -05:00
Kevin Fardel
0884ae21b8 reset ssh connection to allow user changes to affect 'current login user'
Why:
Without this modification, we can't use docker with docker_users in same
playbook than the one which install docker.

How:
Check that docker_users are set and not in docker group before include
docker-users.yml. In docker-users.yml we call reset_connection from
ansible.builtin.meta collection after docker-users are added to docker
group.

Manual success tests:
* Try to install docker with only one user in docker-users and not in
  docker group => docker-users.yml include
* Try to install docker with only one user in docker-users but the user
  is in docker group => docker-users.yml not include
* Try to install docker with 2 users in docker-users, one user in docker
  group and the second not => docker-users.yml include
* Try to install docker with 2 users in docker-users, both are in docker
  group => docker-users.yml not include
* Try to install docker with 2 users in docker-users, both are not in
  docker group => docker-users.yml include
2022-08-24 17:07:45 +02:00
Jeff Geerling
41f9315a49 Switch tests to use Molecule. 2018-09-26 22:13:32 -05:00
Nick Jones
8034040c69
Update user's group membership, not primary group 2018-05-23 17:06:09 +01:00
James McCallum
622dc1dac7 Update documentation 2017-10-18 20:01:02 +11:00
James McCallum
e68f0cbd16 Fix docker group to append group rather than set it 2017-09-26 05:09:58 +10:00
James McCallum
2bf1b29d3f Add user to docker group functionality 2017-09-03 19:21:17 +10:00