No Description

Edin Sarajlic 21bcc145a8 Add task for enabling mod_headers 1 year ago
defaults cb3bc4adae Add task for deploying custom config 3 years ago
files 62e5d3f87d security: lock down /var/www 2 years ago
handlers d9d49be581 Add handler for reloading apachehttpd 3 years ago
tasks 21bcc145a8 Add task for enabling mod_headers 1 year ago
README cae694a4cc README: Fix spacing for clarity 2 years ago

README

Created and tested on a Debian Jessie machine.

A role for creating a Apache HTTP server.

Clone this git repo into your Ansible's role directory, e.g.:

git clone ansible-apachehttpd.git roles/apachehttpd

--

The provided task "deploy_custom_config.yml" copies files from the
source (Ansible server) to the destination (Apache HTTP server)

This allows you to centrally manage (and easily version control) files
that may be unique per-host, such as VirtualHost configs

Once ANY file(s) have been copied across, the Apache HTTP server is
reloaded.

Variables to define:

Source, as defined by the variable:
apachehttpd_custom_config_src
e.g. "{{ inventory_hostname }}/etc/apache2/"

Destination, as defined by the variable:
apachehttpd_custom_config_dst
defaults to /etc/apache2/