fdupont_redhat.ims_premigration_windows
IMS - Pre Migration - Windows
This task prepares the Windows virtual machine for migration. It creates a PowerShell script that:
- Restores the IP settings for network adapters that were set up manually
- Restores the drive letters for disks
- Installs and starts the RHEV-APT service if it's not already there
Prerequisites
The Windows virtual machine needs to be set up to allow Ansible connections using WinRM. Please check the Ansible documentation for help:
Role Variables
You can change how this task behaves using a few variables, which mainly configure the module used. By default, no variables are set.
The only variables you might want to change are those for configuring the Ansible WinRM connection. See Windows Remote Management > Inventory Options
Example Playbook
This playbook will connect the virtual machine to a Satellite 6 server and enable the rhel-7-server-rpms
repository. If no details are given in extra_vars, it assumes that the repositories are already set up and will try to install the agent.
---
- hosts: all
vars:
ansible_connection: winrm
ansible_winrm_transport: kerberos
ansible_winrm_server_cert_validation: ignore
roles:
- role: fdupont_redhat.ims_premigration_windows
ansible-galaxy install fdupont_redhat.ims_premigration_windows