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

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

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
#139
ansible-community/molecule-podman#139

@ssbarnea ssbarnea self-requested a review September 29, 2022 10:22
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.

None yet

2 participants