ansible-role-docker/tasks
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
..
docker-compose.yml Fix docker-compose update 2022-04-12 15:53:25 +02:00
docker-users.yml reset ssh connection to allow user changes to affect 'current login user' 2022-08-24 17:07:45 +02:00
main.yml reset ssh connection to allow user changes to affect 'current login user' 2022-08-24 17:07:45 +02:00
setup-Debian.yml Correct gnupg installation condition 2022-06-18 00:08:48 +12:00
setup-RedHat.yml chore: change yes to true 2022-06-07 14:34:26 +02:00