Skip to content

Linux and pwsh compatibility #305

Closed
Closed

Description

@joraff

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

Activity

  1. lowlydba commented on Mar 17, 2025

    @lowlydba
    Owner

    I think this discussion may be the same problem you're running into.

  2. Repository owner locked and limited conversation to collaborators on Apr 19, 2025
  3. converted this issue into a discussion #311 on Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions