Giter Club home page Giter Club logo

web_environment_with_ansible's Introduction

Web Hosting Environment with Ansible

This repository contains an ansible playbook that automates the configuration of a Linux web hosting infrastructure featuring Apache web server, MySQL & BIND9 DNS

Various components of the playbook have been seperated into 'roles' for better management, organization and reusability.

  • base: Runs the basic tasks involved. These include the installation of packages and dependencies required
  • mysql: This role contains tasks that perform a secure MySQL configuration. Ansible used to have a dedicated module for this but it is now deprecated. These tasks 'manually' perform the same actions such as : disable remote root login, create root user + password, remove default test database, etc
  • dns: configures Bind9 for our domain. This involves creating a hosted zone, setting up DNS records and specifying forwarders
  • web-server: creates a directory that hosts site files, sets permissions, and creates virtual host files
  • letsencrypt: runs steps needed to request a SSL certfiicate from letsencrypt. I used this tutorial from Digital Ocean to accomplish this
  • security: configures firewall settings for the server
  • play.yml runs the entire playbook
  • All variables are stored in the 'group_vars' directory

Improvement:

  • Enhance security by using ansible-vault to store sensitive information such as passwords
  • Include an Intrusion Detection system to monitor network traffic & protect against malicious activities

web_environment_with_ansible's People

Contributors

lily-g1 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.