- Slides
-
Labs
- 1.0 - Setting up Ansible
- 2.0 - Documentation
- 3.0 - Setup and AdHoc Commands
- 4.0 - Ansible Playbooks - Basics
- 4.1 - Ansible Playbooks - Variables and Loops
- 4.2 - Ansible Playbooks - Templates
- 4.3 - Ansible Playbooks - Output
- 5.0 - Ansible Roles - Basics
- 5.1 - Ansible Roles - Handlers and Blocks
- 6.0 - Managing Secrets with Ansible Vault
- 7.0 - Ansible Galaxy and more
- About
- Setup
Windows Vagrant Setup
To participate in the lab you can use any 3 Linux servers of your choice. The labs are tailored for setup with CentOS/RHEL hosts. Below are instructions on how to setup the 3 required host with Vagrant on Windows. Follow the step by step guide to bootstrap the techlab environment on your OS of choice.
The following passwords are not secure and intended only to be used with local virtual machines not reachable from outside of the virtualization host.
Prerequisites
- VirtualBox 6 and higher requires 64-bit Windows.
Connectivity Details
With the Windows Vagrant setup provided the three local CentOS virtual machines running under VirtualBox have the following IP addresses and credentials.
control: 192.168.122.30
node1: 192.168.122.31
node2: 192.168.122.32
user: vagrant
password: vagrant
On Windows ensure VirtualBox and Vagrant are installed. The easiest way is to use Chocolatey to install both of them.
In an administrative powershell console execute the following commands:
# install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# installl VirtualBox and Vagrant
choco install virtualbox vagrant
Open a new PowerShell console with your login account privileges and execute the following commands.
# create directory and download Vagrantfile
mkdir ansible-techlab
cd ansible-techlab
iwr -OutFile Vagrantfile https://raw.githubusercontent.com/puzzle/ansible-techlab/master/Vagrantfile
# setup vm's
vagrant up
Techlab Shutdown
cd ansible-techlab
# shutdown all vm's
vagrant destroy -f