Skip to content

Ansible Lab: 3 nodes setup (control node + 2 workers) in Vagrant (Rocky 9 box)

License

Notifications You must be signed in to change notification settings

nikitabugrovsky/ansible-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI Pipeline

ansible-lab

Ansible Lab: 3 nodes setup: control node (ansible installed) + 2 workers in Vagrant (Rocky Linux 9 box). Current setup supports 2 vagrant providers:

Releases

Release Description
Rocky Linux 9 Box Complete Latest Rocky Linux box release. Requires 1 GB RAM & 1 vCPU per node.
CentOS 7 Box Complete Older CentOS 7 box release. Requires 256 MB RAM & 1 vCPU per node.

Requirements

  1. Supported Host OS:
  • Linux
  • MacOS
  • Windows
  1. Vagrant >= 2.1.5 (latest tested 2.2.19)
  2. VirtualBox >= 5.2.18
  3. (alternatively) libvirt (QEMU/KVM) = 8.6.0-5.fc37
  4. Supported Guest OS: rockylinux/9 box (CentOS successor)

Prerequisites

libvirt provider (Fedora 37)

sudo dnf install @virtualization vagrant vagrant-libvirt vagrant-sshfs vagrant-hosts vagrant-cachier

Start Lab

vagrant up

Run ansible provisioning from control-node

vagrant ssh control-node -c  "ansible-playbook /vagrant/provisioning/ansible/playbook.yml"

Destroy lab

vagrant destroy