An open API service indexing awesome lists of open source software.

https://github.com/dncrypter/ansible-projects

Welcome to my collection of Ansible projects! This repository contains various Ansible playbooks, roles, and collections I've worked on, demonstrating automation, configuration management, and orchestration tasks using Ansible.
https://github.com/dncrypter/ansible-projects

ansible ansible-playbook devops linux

Last synced: 5 months ago
JSON representation

Welcome to my collection of Ansible projects! This repository contains various Ansible playbooks, roles, and collections I've worked on, demonstrating automation, configuration management, and orchestration tasks using Ansible.

Awesome Lists containing this project

README

          

# šŸAnsible Projects

Welcome to my collection of Ansible projects! This repository contains various Ansible playbooks, roles, and collections I've worked on, demonstrating automation, configuration management, and orchestration tasks using Ansible.

All listed Projects are followed best Devops practices.

[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
[![LinkedIn](https://img.shields.io/badge/LinkedIn-Profile-blue)](https://www.linkedin.com/in/nikhil--chaudhari/)
[![Medium](https://img.shields.io/badge/Medium-Writeups-black)](https://medium.com/@nikhil-c)

## Table of Contents

- [Introduction](#introduction)
- [Project Structure](#project-structure)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)

## Introduction

Ansible is an open-source automation tool that helps automate tasks such as configuration management, application deployment, and orchestration. In this repository, you'll find Ansible projects that I’ve created for different use cases, environments, and scenarios.

Each project includes well-documented playbooks and roles, which are reusable and modular. These projects aim to demonstrate the power of automation and infrastructure as code with Ansible.

## Project Structure

The general structure of the repository is as follows:

- **playbooks/**: Contains the Ansible playbooks that define the automation tasks.
- **roles/**: Stores reusable Ansible roles that can be applied across different playbooks.
- **README.md**: Each project folder has its own `README.md` file for project-specific details.

## Installation

To get started with any of the Ansible projects in this repository, follow these steps:

1. Clone the repository:
```bash
git clone https://github.com/your-username/ansible-projects.git
cd ansible-projects
```

2. Install Ansible on your local machine (if not already installed):
- On Ubuntu/Debian:
```bash
sudo apt update
sudo apt install ansible
```

- On macOS:
```bash
brew install ansible
```

3. Set up the necessary inventory or configuration files as per the instructions in each project’s README.

## Usage

Each project in this repository comes with its own set of instructions on how to use the playbooks or roles. Here is a general guideline for running Ansible playbooks:

1. Navigate to the project folder:
```bash
cd project1
```

2. Run the Ansible playbook:
```bash
ansible-playbook playbooks/setup.yml -i inventory
```

Make sure to replace `playbooks/setup.yml` and `inventory` with the actual paths to your playbook and inventory file.

### Example

For example, in `project1/README.md`, you might have something like this:

### To deploy a web server:
1. Modify `inventory` file to include your target server(s).
2. Run the playbook:
```bash
ansible-playbook playbooks/webserver.yml -i inventory
```

## Contributing
Contributions are welcome! If you have any ideas, fixes, or enhancements, feel free to open an issue or create a pull request. Here are a few guidelines:

1. Fork the repository.
2. Create a new branch (git checkout -b feature-branch).
3. Commit your changes (git commit -am 'Add new feature').
4. Push to the branch (git push origin feature-branch).
5. Create a new Pull Request.
- Please ensure that any changes you submit follow the existing code style and include appropriate tests/documentation.

### Thanks for checking out my Ansible projects!

#### How to Use This Template:

- Replace `your-username` in the `git clone` command with your GitHub username.
- For each project, you can create a subdirectory (`project1`, `project2`, etc.) and include its own `README.md` detailing how to use specific playbooks or roles in that project.
- Add specific instructions for different use cases or environments as necessary.

Let me know if you want to customize this further!