ansible-community / molecule-plugins

Collection on molecule plugins
MIT License
101 stars 67 forks source link

podman: change ansible_async_dir only when $HOME is redefined #173

Closed grcancelliere closed 11 months ago

grcancelliere commented 1 year ago

fixes #73

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.