jpmat296.upgrade_powershell

Ansible 角色:升级 PowerShell

Ansible Galaxy CI

这是一个用于将 Windows PowerShell 升级到 5.1 版本的 Ansible 角色。

它使用 Chocolatey 来升级 PowerShell,并利用 Windows 任务调度器在重启后启动升级。这样可以在升级过程中不中断 Ansible WinRM 连接。

兼容性

此角色兼容以下 Windows 版本:

  • Windows Server 2008 R2
  • Windows Server 2012
  • Windows Server 2012 R2

在升级前会检查当前 PowerShell 的版本。如果版本不是 3.0、4.0 或 5.0,则不会进行任何更改。

在 Windows 2016 及之后版本中,该角色不会执行任何操作,也不会产生错误。

角色变量

不应更改任何变量。

依赖关系

没有依赖关系。

示例剧本

- hosts: windows_servers
  roles:
     - role: jpmat296.upgrade_powershell

许可证

BSD

作者信息

该角色由 Jean-Pierre Matsumoto 于 2020 年创建。

关于项目

Unattended PowerShell upgrade to version 5.1

安装
ansible-galaxy install jpmat296.upgrade_powershell
许可证
Unknown
下载
4.2k