How to configure practice environment of Ansible using Vagrant?
Introduction
Thank you for clicking through to my arcticle. I've been a DevOps engineer for 2 years in dev-team of 7 engineers.
My name is MINSEOK, LEE, but I use Unchaptered as an alias on the interenet. So, you can call me anythings "MINSEOK, LEE" or "Unchaptered" to ask something.
Topic
Using vagrant, let's configure our environment to use Ansible Core.
Prerequisites
To follow this guide book, you must install VMWare.
Therefore, you need to follow along with "How to configure practice environment of Ansible? # STEP 1 : Install Virtual Box".
Ansible Guide Book Series
Update default vagrant file
Modify Hostname for Vagrant
Modify Hostname for VirtualBox
Modify Hostname for HostMachine
Disable Sync Directory between HostMachine and VirtualMachine
Set up IP Address to connect internet
Change HostMachine Port to be similar with IP Address.
Create Bootstrap ShellScript to maintain Vagrantfile simple.
Install EPEL using Yum
Install Ansible using Yum
Sample Codes
In this codes, you can use
vagrant up
andvagrant ssh ansible-server