Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

fix: make sure directory for async is correctly set #139

Merged
merged 2 commits into from
Sep 29, 2022

Conversation

gardar
Copy link
Contributor

@gardar gardar commented Sep 28, 2022

In certain cases where the home directory environment variable ($HOME) is set and it doesn't match the home directory in /etc/passwd the async_status task will fail with a message such as:

"results_file": "/home/runner/.ansible_async/25596
1675523.4961", "started": 1}, "msg": "could not find job", "results_file": "/root/.ansible_async/255961675523.4961"

This fixes that issue by setting the HOME environment variable as the ansible_async_dir variable that 'async_status' task accepts as a override.

I ran into this issue with the creator-ee container that is supposedly going to be fixed but I'm proposing this change as this issue could still occur in other containers/environments.

Related:
ansible/ansible-runner#1024
ansible/creator-ee#19
ansible/ansible-runner#1027
ansible-community/molecule-docker#139
ansible-community/molecule-docker#178

@gardar
Copy link
Contributor Author

gardar commented Sep 29, 2022

Any chance we could get this one merged too @ssbarnea ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants