https://github.com/fabiendupont/ims.premigration-windows
IMS - Premigration Role - Windows
https://github.com/fabiendupont/ims.premigration-windows
ansible-role ims migration powershell-script windows
Last synced: 8 months ago
JSON representation
IMS - Premigration Role - Windows
- Host: GitHub
- URL: https://github.com/fabiendupont/ims.premigration-windows
- Owner: fabiendupont
- License: apache-2.0
- Created: 2020-05-27T14:38:51.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-04T23:39:20.000Z (about 3 years ago)
- Last Synced: 2024-12-25T18:28:50.491Z (over 1 year ago)
- Topics: ansible-role, ims, migration, powershell-script, windows
- Language: PowerShell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 0
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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:
- [Setting up a Windows Host](https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html)
- [Windows Remote Management](https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html)
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](https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#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.
```yaml
---
- hosts: all
vars:
ansible_connection: winrm
ansible_winrm_transport: kerberos
ansible_winrm_server_cert_validation: ignore
roles:
- role: fdupont_redhat.ims_premigration_windows
```