This PR tries to avoid the hardcoding of ansible_async_dir introduced in molecule-podman PR #139 by using ansible.builtin.getent to get the $USER passwd data and by using ansible.builtin.config to get async_dir from the shell configuration. ansible_async_dir will be set only if the two home paths are different and the value will pick up the changes set from the rest of the controller set-up.
tox.ini is also updated to allow lookup('env', 'USER') to work in the CI.
fixes #73
This PR tries to avoid the hardcoding of
ansible_async_dir
introduced in molecule-podman PR #139 by usingansible.builtin.getent
to get the$USER
passwd data and by usingansible.builtin.config
to getasync_dir
from the shell configuration.ansible_async_dir
will be set only if the two home paths are different and the value will pick up the changes set from the rest of the controller set-up.tox.ini
is also updated to allowlookup('env', 'USER')
to work in the CI.