ansible-roles/apache
Mathieu Trossevin 7c632352a0
Replace the include module with include_tasks or import_tasks
The behaviour of the `include` module is badly defined (it try to choose
between statically importing the tasks and dynamically including them)
and can cause problems depending on any number of constraints (mostly if
it choose the wrong behaviour).

Replace it with the `import_tasks` (always statically import tasks) unless
the `include` is in a loop in which case we replace it with
`include_tasks` (always dynamically include tasks).
2023-01-03 14:43:42 +01:00
..
defaults apache: new variable for mpm mode (+ updated default config accordingly) 2021-04-19 17:35:49 +02:00
files apache: block access to .git* and .env* files 2021-12-28 16:27:05 +01:00
handlers Revert "Add “when: not ansible_check_mode” to allow more --check" 2022-12-14 07:41:18 +01:00
meta Update Galaxy metadata (company, platforms and galaxy_tags) 2021-06-28 15:26:28 +02:00
tasks Replace the include module with include_tasks or import_tasks 2023-01-03 14:43:42 +01:00
templates apache: the default VHost doesn't redirect to https for ".well-known" paths 2020-01-23 14:34:03 +01:00
tests Update test kitchen configuration and directory layout 2017-02-27 15:49:10 -05:00
.kitchen.yml Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
README.md apache/nginx/fail2ban: mention ip_whitelist.yml in README.md 2018-11-02 18:18:22 +01:00

Apache

Install Apache

Tasks

Everything is in the tasks/main.yml file for now.

An ip_whitelist.yml standalone task file is available to update IP adresses whitelist without rolling the whole role.

Available variables

Main variables are :

  • apache_ipaddr_whitelist_present : list of IP addresses to have in the private whitelist ;
  • apache_ipaddr_whitelist_absent : list of IP addresses not to have in the whitelist;
  • apache_private_htpasswd_present : list of users to have in the private htpasswd ;
  • apache_private_htpasswd_absent : list of users to not have in the private htpasswd.
  • log2mail_alert_email: email address to send Log2mail messages to (default: general_alert_email).

The full list of variables (with default values) can be found in defaults/main.yml.