Coder Social home page Coder Social logo

ansible_project's Introduction

DG Ansible Project

Description

This project aims to deploy a highly available and redundant infrastructure for hosting a personal resume website using Ansible. The infrastructure will be configured with multiple NGINX servers in an active-passive setup and duplicate web servers for high availability. The goal is to ensure that the website remains accessible and operational, even in the event of server failure.

Installation

  1. Clone the repository:

     git clone <repository-url>
     cd my_ansible_project
    
  2. Set up a virtual environment (optional but recommended):

    virtualenv venv
    source venv/bin/activate
    
  3. Install Ansible and pre-commit:

    pip install ansible pre-commit
    pre-commit install
    
  4. Set up pre-commit hooks:

    pre-commit install
    

Usage

  1. Configure your inventory file (inventory/production/hosts) with the IP addresses or hostnames of your servers.

  2. Modify the Ansible playbooks (site.yml, webservers.yml, nginx.yml) and roles (roles/) as needed to fit your project requirements.

  3. Run Ansible playbooks to deploy your infrastructure:

    ansible-playbook -i inventory/production/hosts site.yml
    
    

Pre-commit Hooks

This project uses pre-commit to enforce code quality and consistency. Before committing changes, pre-commit hooks will automatically run to check for issues such as linting errors and formatting violations.

To manually run pre-commit hooks:

```
pre-commit run --all-files

License

This project is licensed under the MIT License.

Feel free to customize and expand upon this template to better fit your project's specific needs and requirements.

ansible_project's People

Contributors

izomanuel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.