Skip to content

Ansible play to spin up kvm lab to play with cluster setup like K8s etc.

Notifications You must be signed in to change notification settings

rdev2021/kvmlab-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KVM Labs using Ansible

Create VM with libvirtd using anisble playbook. Using the vm to setup k3s to trail out few kubernetes features.

Inspired from: https://www.redhat.com/sysadmin/build-VM-fast-ansible

Setup

As of commiting the code the Fedora version is 38 and Ansible core is 2.14.7.

Run playbook

Setup:

ansible-playbook -K vm_provision.yaml --extra-vars "ssh_pub_key=path to pub key base_image_storage_path=path to store isos"

Teardown:

ansible-playbook -K reset.yaml

Dependency

  • ansible-galaxy collection install community.libvirt

About

Ansible play to spin up kvm lab to play with cluster setup like K8s etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages