fabiendupont / ims.premigration-windows

IMS - Premigration Role - Windows
Apache License 2.0
1 stars 4 forks source link
ansible-role ims migration powershell-script windows

IMS - Pre Migration - Windows

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

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