Skip to content

Ansible project template with roles/ structure, best practices, and reusable automation skeleton for Linux infrastructure tasks.

Notifications You must be signed in to change notification settings

CarlosSemeao/ansible-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Project Template

Status Tech Stack

Overview

This is my modular Ansible Automation Project Template, built for rapid deployment, repeatability, and clean structure in production-like environments. It follows Ansible best practices, GitOps-ready principles, and is tailored for use in cloud automation, Linux hardening, user provisioning, service management, and CI/CD integrations.

This repository is not just a folder layout — it’s a battle-tested framework I use in real automation labs and will scale with future roles, playbooks, and Ansible Galaxy roles.

Features

• Modular roles/ structure • Passwordless SSH control from macOS to Linux • Role-based automation (user_provision, file_ops) • Click-by-click GitHub execution (no CLI setup required) • GitOps-compatible and CI/CD-ready • Easily extendable for: • Cloud provisioning (AWS, Azure) • Linux hardening and user management • Service deployment • Cron jobs / scheduled ops • Compliance automation

Directory Structure

ansible-project-template/
├── ansible.cfg               # Ansible configuration
├── inventories/
│   └── hosts.ini             # Inventory file
├── playbooks/
│   └── main.yml              # Main playbook (calls roles)
├── roles/
│   ├── user_provision/       # Creates the devops_user on remote machine
│   │   ├── tasks/
│   │   │   └── main.yml
│   │   └── vars/
│   │       └── main.yml
│   └── file_ops/             # Manages /opt/ops.txt with date/time stamp
│       └── tasks/
│           └── main.yml
├── .gitignore
└── README.md

About

Ansible project template with roles/ structure, best practices, and reusable automation skeleton for Linux infrastructure tasks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published