DevToolsActivePort is an environment variable used by Chromium-based browsers and the ChromeDriver to establish a connection between them.
How about using ssh-add to add the key?
Chromium was installed using the playbook.
Another issue occurred after changing to use the real module (snap) as shown above, and it indicated the failure to find the required service snapd on the host.
Run command ansible-playbook basic_checks.yml --ask-become-pass -vvv.
I completed the playbook running to start the container with systemd and installed the chromium-chromedriver and chromium-browser packages. However, when I start snapd and udev, an error stated as:
This error has been fixed.
I think this issue happened as the requests module is not installed on the host running Ansible, and how about adding a part to install the module before attempting to run any tasks that require it?