blob: 8d24f32655b47ca6b7b76a060dd66bd9675ec8fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
---
# Setup apache
- name: Install apache
apt: name={{ item }} state=present update_cache=yes
with_items:
- apache2
- apache2-mpm-event
- name: Enable Apache Modules
apache2_module: name={{ item }} state=present
with_items:
- authnz_ldap
- authz_groupfile
- cgid
- headers
- info
- proxy
- proxy_http
- reqtimeout
- rewrite
- ssl
notify: Restart apache
- name: Disable standard vhost
file:
name=/etc/apache2/sites-enabled/000-default.conf
state=absent
notify: Reload apache
- name: Configure OCSP Stapling cache
lineinfile:
dest=/etc/apache2/mods-enabled/ssl.conf
line="SSLStaplingCache shmcb:${APACHE_RUN_DIR}/ocsp_scache(128000)"
notify: Reload apache
|