Giter Site home page Giter Site logo

danehans / ansible-role-httpd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bertvv/ansible-role-httpd

0.0 1.0 0.0 20 KB

Ansible role for simple Apache configuration on CentOS/RHEL 7 with HTTPS/TLS enabled.

License: Other

Ruby 29.04% Shell 70.96%

ansible-role-httpd's Introduction

Ansible role httpd

A simple Ansible role for installing and configuring the Apache web server for RHEL/CentOS 7 and Fedora 21+. Specifically, the responsibilities of this role are to:

  • Install the necessary packages;
  • Maintain the main configuration file;
  • Maintain the configuration file for mod_ssl.
  • Install support for scripting language (currently only PHP)

HTTPS/TLS is enabled, by default using the standard self-signed certificate. You can provide your own certificate by setting the appropriate role variables.

Currently, no virtual hosts or other features are provided.

Requirements

  • The firewall settings are not managed by this role.
  • If you want to use custom certificates, you have to make sure that they are installed on the system before applying this role.

Role Variables

If no variables are set, applying this role will result in a configuration equivalent to the default install. Consequently, no variables are required.

Variable Default Comments (type)
httpd_AccessLog_ssl logs/ssl_access_log
httpd_DocumentRoot '/var/www/html'
httpd_ErrorLog_ssl logs/ssl_error_log
httpd_ErrorLog logs/error_log
httpd_Listen_ssl 443
httpd_Listen 80
httpd_LogLevel_ssl warn
httpd_LogLevel warn
httpd_SSLCACertificateFile -
httpd_SSLCertificateChainFile -
httpd_SSLCertificateFile /etc/pki/tls/certs/localhost.crt
httpd_SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
httpd_SSLCipherSuite See default variables
httpd_SSLHonorCipherOrder 'on'
httpd_SSLProtocol 'all -SSLv3 -TLSv1'
httpd_ServerAdmin root@localhost
httpd_ServerRoot '/etc/httpd'
httpd_ServerTokens Prod See documentation
httpd_scripting - Allowed values: php

Dependencies

No dependencies.

Example Playbook

See the test playbook

Testing

The tests directory contains acceptance tests for this role in the form of a Vagrant environment. The directory tests/roles/httpd is a symbolic link that should point to the root of this project in order to work. To create it, do

$ cd tests/
$ ln -frs ../../bertvv.httpd roles/httpd

You may want to change the base box into one that you like. The current one is based on Box-Cutter's CentOS Packer template.

The playbook test.yml applies the role to a VM, setting role variables.

Contributing

Issues, feature requests, ideas are appreciated and can be posted in the Issues section. Pull requests are also very welcome. Preferably, create a topic branch and when submitting, squash your commits into one (with a descriptive message).

License

BSD

Author Information

Bert Van Vreckem ([email protected])

ansible-role-httpd's People

Contributors

bertvv avatar sorki 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.