Getting Started with Ansible
Description
Ansible is a tool for automating configuration management, application deployment, and server provisioning. It's relatively lightweight as it has few dependencies, which means it can be easily deployed to manage and configure computing resources.
Learning how to create a playbook to configure a server is one of the basic use-cases for Ansible.
In this lab, you will create a playbook that installs and configures the first three elements of the classic Linux Apache Mysql PHP (LAMP) web application software stack.
Learning Objectives
Upon completion of this intermediate-level lab, you will be able to:
- Use the command line to create a new Ansible playbook
- Install and configure the Apache webserver using an Ansible playbook
- Make your playbook more reusable by adding variables
Prerequisites
Familiarity with the following will be beneficial but is not required:
- The Bash command line
- Ansible playbooks
- YAML
The following courses and labs can be used to fulfill the prerequisites:
- Linux Command Line Byte Session
- Ansible Essentials: Simplicity in Automation Technical Overview
- Reading, Writing, and Parsing YAML Files
Updates
January 4th, 2024 - Resolved an issue that caused the lab to fail to setup on rare occasions
December 14, 2021 - Updated format of the lab
January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab