Can this collection be used with linux remote execution environments? I see the work done to setup a local linux execution environment with pwsh with family isn't Windows.
I'm getting parse errors when trying it out. Powershell was installed on RHEL9 via Microsoft's RPMs, /usr/bin/ powershell symlinked to /usr/bin/pwsh, and the dbatools and dbops modules are installed:
fatal: [host]: FAILED! => changed=false
module_stderr: |-
Shared connection to 1.2.3.4 closed.
module_stdout: |-
[?1h=[31;1mParserError: [0m/home/user/.ansible/tmp/ansible-tmp-1742170788.053111-92990-215191040098292/AnsiballZ_install_script.ps1:159[0m
[31;1m[0m[36;1mLine |[0m
[31;1m[0m[36;1m[36;1m 159 | [0m [36;1m[0m{"module_entry": "IyFwb3dlcnNoZWxsCiMgLSotIGNvZGluZzogdXRmLTggLSo …[0m
[31;1m[0m[36;1m[36;1m[0m[36;1m[0m[36;1m | [31;1m ~[0m
[31;1m[0m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m | [31;1munexpected token '', expected 'begin', 'process', 'end', 'clean', or[0m
[31;1m[0m[36;1m[36;1m[0m[36;1m[0m[36;1m[31;1m[31;1m[36;1m[31;1m[36;1m | [31;1m'dynamicparam'.[0m
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
Can this collection be used with linux remote execution environments? I see the work done to setup a local linux execution environment with pwsh with family isn't Windows.
I'm getting parse errors when trying it out. Powershell was installed on RHEL9 via Microsoft's RPMs, /usr/bin/ powershell symlinked to /usr/bin/pwsh, and the
dbatoolsanddbopsmodules are installed: