Giter VIP home page Giter VIP logo

ansible-webserver's Introduction

ansible-webserver

Playbook for LAMP (Linux, Apache, MySQL, PHP) server. For now works only on CentOS 6.6 system. It will install latest Apache (2.4.12), PHP (5.6.10), MySQL Community server (5.7.7) and Varnish Cache (4.0.3)

For more details and installation instructions: http://blog.astaz3l.com/2014/05/19/setup-vps-server/

Roles

- epel

EPEL is repository that provides useful software packages that are not included in the official CentOS repositories.

- common

Update everything to latest versions and install required packages for CentOS so it can be provisioned by Ansible. In addition it will create group, user and directory for compiling purposes.

- firewall

Setup firewall based on iptables.

- ssh

Configure SSH daemon and improve security.

- httpd

Apache server in latest version (2.4.12) on CentOS. Apache will be build from source and installed in local system. It contains configuration files, basic hardening, logrotate and /etc/init.d script. In addition it comes with ModSecurity module and OWASP rules for better security.

- php

PHP in latest version (5.6.9). PHP will be build from source. It contains configuration files, PHP-FPM setup, OPCache setup, basic hardening and /etc/init.d script.

- mysql

Install MySQL community server in latest version (5.7.7). It will be installed from official MySQL repository. Contains configuration files and basic hardening.

- varnish

Install Varnish in latest version. Contains configuration and basic setup including fix for CentOS 6.6

Variables

In group_vars/all.yml You will find configuration that is used across all modules.

Build user - username, group and directory. To provided directory ansible will download source files for apache and will compile it there.

Website directory - preferably /var/www directory. All logs, and htdocs will be stored in that directory.

Websites - list of websites that will be placed inside website directory.

PHP-FPM port - initial port for FPM pool. Each website has it's own pool.

MySQL socket - just be sure that PHP will use the same socket as MySQL server

WWW group - this is the group for apache and developer. So they can modify the files without permission denied.

SSH port - port for SSH

ansible-webserver's People

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.