You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PR ansible-community/molecule-podman#139 hardcodes ansible_async_dir to its default value $HOME/.ansible_async with a changed $HOME if the environment variable has a different value than the one in /etc/passwd. This means that any other method to change that variable, like defining it in group_vars, is ignored.
To avoid hardcoding variables this change can be applied by checking if the home from getent passwd and $HOME are different, and if so replacing the passwd home at the start of ansible_async_dir with the value from the $HOME environment variable.
I tried locally with a venv and it works, if you're interested I can write a PR for this.
The text was updated successfully, but these errors were encountered:
ssbarnea
transferred this issue from ansible-community/molecule-podman
Jan 8, 2023
grcancelliere
changed the title
create.yml and destroy.yml hardcode ansible_async_dir
[podman] create.yml and destroy.yml hardcode ansible_async_dir
Jan 10, 2023
The PR ansible-community/molecule-podman#139 hardcodes
ansible_async_dir
to its default value$HOME/.ansible_async
with a changed$HOME
if the environment variable has a different value than the one in/etc/passwd
. This means that any other method to change that variable, like defining it ingroup_vars
, is ignored.To avoid hardcoding variables this change can be applied by checking if the home from
getent passwd
and$HOME
are different, and if so replacing the passwd home at the start ofansible_async_dir
with the value from the$HOME
environment variable.I tried locally with a venv and it works, if you're interested I can write a PR for this.
The text was updated successfully, but these errors were encountered: