Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 1.49 KB

README.md

File metadata and controls

77 lines (53 loc) · 1.49 KB

Role Name

Ansible Playbook to install and configure KVM on a RHEL 7 machine.

Requirements

This role requires a valid subscription for RHEL.

Description

This role will:

  • Register the system to RHN.
  • Install Software
  • Install base image for rhel-7
  • Create a rhel-7 template
  • Create and configure a virtual machine

Role Variables

Username for RHN: rhn_user Password for RHN: rhn_password Hostname for the system : hostname_full Size of the Template HD: template_size Directory to store the VMs: vm_directory Name for the template: template_name Root Password for template: root_password If the VM will be created or no (yes or no): create_vm: Name of the VM: vm_name IP for the VM: ip_address Netmask: netmask Gateway: gateway DNS Server: dns1 Memory Size on MB : memory_size CPU Count for VM: cpu_count Interface for Bridge: bridge_interface

Dependencies

There is no role dependency for this role.

Host File

The host file for this role is hosts.target and the format is:

[hypervisor] IP FOR HYPERVISOR SERVER

How to run the playbook

** Edit the variable file on vars/main.yml to set it to your environment.

** Run the playbook

ansible-playbook -i hosts.target site.yml -K

** RHEL 8

ansible-playbook -i hosts.target site.yml -K -e rhel_version=8

License

MIT

Author Information

Julio Villarreal Pelegrino [email protected] more at: http://wwww.juliovillarreal.com