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
Antonio is an IT Manager and a software and infrastructure Engineer with 15 years of experience in designing, implementing and deploying complex webapps.
He has a deep knowledge of the IEEE Software and Systems Engineering Standards and of several programming languages (Python, PHP, Java, Scala, JS).
Antonio has also been using and designing cloud infrastructures for five years, using both public and private cloud services (Amazon Web Services, Google Cloud Platform, Azure, Openstack and Vmware vSphere).
During his past working experiences, he designed and managed large web clusters, also developing a service orchestrator for providing automatic scaling, self-healing and a Disaster Recovery Strategy.