After the role has run (on the first deploy) I need to run reset_connection to be able to connect to docker with the user defined in docker__users. Should this be part of the role itself? Alternatively the task could notify the playbook that user groups was updated so the playbook can do it only if needed.
One possible downside relying on reset_connection is that it seems broken in ansible < 2.5.8 (see https://stackoverflow.com/a/44753457)
After the role has run (on the first deploy) I need to run reset_connection to be able to connect to docker with the user defined in docker__users. Should this be part of the role itself? Alternatively the task could notify the playbook that user groups was updated so the playbook can do it only if needed.
One possible downside relying on reset_connection is that it seems broken in ansible < 2.5.8 (see https://stackoverflow.com/a/44753457)