Basic Project Setup for Ansible
Learn how to setup an Ansible project to achieve configuration management needs.
We'll cover the following
Setting up an Ansible project
When working on an Ansible project, it’s important to understand the basic layout of directories and files. Understanding how an Ansible project is set up allows us to create a project that’s structured and organized. Our files need to be organized properly so that Ansible is able to pick up the right information at runtime. Beyond this, it’s easier for another team member to collaborate on an organized Ansible project, especially when we’re managing our configuration using a version control system like GitHub.
A basic Ansible project layout
Let’s assume we’ve been tasked with the responsibility of setting up two database servers and two web servers that will run relevant services like NGINX and PostgreSQL. For this purpose, we can have a sample project layout like the one shown in the following image.
Get hands-on with 1400+ tech skills courses.