justin-p / ansible-role-posh5

Update PowerShell/Windows Management Framework to Version 5.1, enure that .Net applications use Strong TLS, configure NuGet, PowerShell Gallery, PowerShellGet and install the PSReadline Module.
MIT License
6 stars 3 forks source link
ansible ansible-galaxy ansible-role hacktoberfest microsoft posh posh5 powershell powershell5 windowsmanagementframework wmf

ansible-role-posh5

Ansible Role Name Github Actions

This role will update PowerShell/Windows Management Framework to Version 5.1, enure that .Net applications use Strong TLS, configure NuGet, PowerShell Gallery, PowerShellGet and install the PSReadline Module.

All of this ensures that PowerShell functions like it does on modern Windows Systems. This ensures you can use Install-Module and by extend win_psmodule to install PowerShell modules or DSCs on older versions of Windows without any additional manual configuration.

Works on

Not validated (yet) on

Requirements

N/A

Role Variables

N/A

Dependencies

N/A

Example Playbook

- hosts: posh5
  roles:
     - { role: justin_p.posh5 }

Local Development

This role includes a Vagrantfile that will spin up a local Windows Server 2019 VM in Virtualbox. After creating the VM it will automatically run our role.

Development requirements

pip3 install pywinrm

Usage

License

MIT

Authors

Contributing

Feel free to open issues, contribute and submit your Pull Requests. You can also ping me on Twitter (@JustinPerdok).