ims_premigration_windows

IMS - Pre Migration - Windows

This role configures the Windows virtual machine for migration. For that, it generates a PowerShell script that:

  • Restores the IP configuration for network adapters statically configured
  • Restores the disks drive letters
  • Installs and starts RHEV-APT service if absent

Prerequisites

The Windows virtual machine must be configured to accept Ansible connection with WinRM. Please, refer to Ansible documentation:

Role Variables

The role behaviour can be influenced via some variables that are mainly wrappers for the module used in the role. By default, no variable is set.

The only variables that you may want to customize are the ones configuring the Ansible WinRM connection.See Windows Remote Management > Inventory Options

Example Playbook

The following playbook will register the virtual machine against a Satellite 6 server and enable the rhel-7-server-rpms repository. If no information is provided in extra_vars, the playbook will assume that repositories are already configured 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
About

This role configures the Windows virtual machine for migration.

Install
ansible-galaxy install fdupont-redhat/ims.premigration-windows
GitHub repository
License
apache-2.0
Downloads
120