Immutable solution version
ansible.builtin.win_ping: Default Windows temp directory resolution broken with 2.19
Complete solution
Teaches how to ansible.builtin.win_ping: Default Windows temp directory resolution broken with 2.19. Based on a real issue report and its verified fix.
The problem
Issue ansible/ansible#85864 (closed, 21 comments): ### Summary When we update from ansible-core 2.18.9 to 2.19.2 the win_ping module breaks because it does not seem to correctly resolve the Windows temporary directory (see logs) and therefore the payload cannot be copied to the remote server. ### Issue Type Bug Report ### Component Name pip ### Ansible Version ```console $ ansible --version ansible [core 2.19.2] config file = None configured module search path = ['[HOME]/...', '/usr/share/ansible/plugins/modules'] ansible python module location = [HOME]/...
What to do
Default Windows temp directory resolution broken with ansible 2.19: the root cause is antivirus (McAfee/Trellix Endpoint Security) killing the bootstrap wrapper mid-run. Add Ansible's bootstrap wrapper file to the AV internal exclusion list. To debug, copy the ansible-local-* temp dir off the host while the task runs, or set ANSIBLEKEEPREMOTE_FILES=1. Note a separate report traced to the AWS SSM connection plugin, which is not Ansible-supported, so take those to the plugin maintainers.
Evidence
In the GitHub issue gh:ansible/ansible#85864 (https://github.com/ansible/ansible/issues/85864), the problem reported was: Issue ansible/ansible#85864 (closed, 21 comments): ### Summary When we update from ansible-core 2.18.9 to 2.19.2 the winping module breaks because it does not seem to correctly resolve the Windows temporary directory (see logs) and therefore the payload cannot be copied to the remote server. ### Issue Type Bug Report ### Component Name pip ### Ansible Version ```console $ ansible --version ansible [core 2.19.2] config file = None configured module search path = ['[HOME]/...', '/usr/share/ansible/plugins/modules'] ansible python module location = [HOME]/... The verified resolution was: Default Windows temp directory resolution broken with ansible 2.19: the root cause is antivirus (McAfee/Trellix Endpoint Security) killing the bootstrap wrapper mid-run. Add Ansible's bootstrap wrapper file to the AV internal exclusion list. To debug, copy the ansible-local-* temp dir off the host while the task runs, or set ANSIBLEKEEPREMOTEFILES=1. Note a separate report traced to the AWS SSM connection plugin, which is not Ansible-supported, so take those to the plugin maintainers.
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_CBytNG7Hr_FfHWX3hRpRBg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">ansible.builtin.win_ping: Default Windows temp directory resolution broken with 2.19 <span>— Vectle</span></a>