How learnlinuxtv/getting_started_with_ansible works
Project type and purpose
• This is an Ansible-based Infrastructure-as-Code project. Its purpose is to automate the provisioning and configuration of a set of Linux hosts (web servers, database servers, file servers, and workstations) using Ansible playbooks and roles.
File structure
• Top-level files:
• ansible.cfg – configuration for the Ansible control node
• inventory – list of target hosts or host groups
• site.yml, bootstrap.yml, install_apache.yml, remove_apache.yml – playbooks that orchestrate various tasks
• host_vars/ – per-host variable overrides
• roles/ – reusable role definitions, each with:
• tasks/main.yml
• handlers/main.yml
• files/ and templates/ (Jinja2 templates)
• .files/ for static file distribution
• files/ – project-wide static files (e.g. default_site.html)
• roles folder subdivided into base, db_servers, file_servers, web_servers, workstations
Insights from the README
• This repo is part of a tutorial series on getting started with Ansible.