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
This issue was raised previously under issue #116 and incorrectly closed.
We are using rundeck to execute PowerShell scripts as inline script, configuring this via the GUI is simple enough as you can add a file extension of ps1. However, the terraform provider doesn't support the file extension, which means the script is copied to the remote server with the default file extension of .bat, which PowerShell executes as a batch file rather than PowerShell.
Can the file extension option be included in the script_interpreter block? As example is below:
This issue was raised previously under issue #116 and incorrectly closed.
We are using rundeck to execute PowerShell scripts as inline script, configuring this via the GUI is simple enough as you can add a file extension of ps1. However, the terraform provider doesn't support the file extension, which means the script is copied to the remote server with the default file extension of .bat, which PowerShell executes as a batch file rather than PowerShell.
Can the file extension option be included in the script_interpreter block? As example is below:
As a workaround with PowerShell, you can use the following for the invocation string:
powershell.exe -NoProfile -NoLogo -Command {Invoke-Expression -Command (Get-Content -path $${scriptfile} -Raw)}
The text was updated successfully, but these errors were encountered: