Script module can't run powershell scripts when environment block exists #22441
Labels
affects_2.3
This issue/PR affects Ansible v2.3
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
windows
Windows community
ISSUE TYPE
COMPONENT NAME
script
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Managing Windows OS.
SUMMARY
Script module can't run powershell scripts when
environment
block exists.STEPS TO REPRODUCE
I'm trying to pass environment variable to the script:
I originally needed to run such task to install Chocolatey behind a proxy server. To execute step 3 of the instruction I need to run:
EXPECTED RESULTS
I expect the operation to succeed:
ACTUAL RESULTS
But I got the error:
The text was updated successfully, but these errors were encountered: