fdupont_redhat.ims_premigration_windows
IMS - 迁移前 - Windows
该角色配置Windows虚拟机以进行迁移。为此,它生成一个PowerShell脚本来:
- 恢复静态配置的网络适配器的IP配置
- 恢复磁盘驱动器字母
- 安装并启动缺失的RHEV-APT服务
先决条件
Windows虚拟机必须配置为接受Ansible连接,使用WinRM。请参考Ansible文档:
角色变量
该角色的行为可以通过一些变量进行影响,这些变量主要是角色中使用的模块的包装器。默认情况下,没有设置任何变量。
您可能想自定义的唯一变量是配置Ansible WinRM连接的变量。请参见 Windows远程管理 > 清单选项
示例剧本
下面的剧本将虚拟机注册到Satellite 6服务器,并启用rhel-7-server-rpms
存储库。如果在extra_vars中未提供任何信息,剧本将假定存储库已经配置,并将尝试安装代理。
---
- hosts: all
vars:
ansible_connection: winrm
ansible_winrm_transport: kerberos
ansible_winrm_server_cert_validation: ignore
roles:
- role: fdupont_redhat.ims_premigration_windows