Examples

[host_vars/srv.example.com/apache.yml]

 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
35
36
37
38
39
40
41
42
43
---
# vars for apache

apache_enable: true
apache_version: "24"
apache_php_lib: "7"

al_debug: true
apache_debug: true
apache_backup_conf: true

apache_ssl: true
apache_php: true
apache_vhosts: true
apache_SSLEngine: "on"

apache_packages:
  - "{{ apache_package }}"
  - "{{ apache_php_package }}"

apache_ServerName: "srv.example.com"
apache_ServerAdmin: "admin@example.com"
apache_SSLCertificateFile: "/usr/local/etc/ssl/certs/srv.example.com.crt"
apache_SSLCertificateKeyFile: "/usr/local/etc/ssl/private/srv.example.com.key"

apache_confd_dir_vhosts: "{{ playbook_dir }}/servers/apache.d/vhosts"
apache_confd_dir_sections: "{{ playbook_dir }}/servers/apache.d/sections"

apache_httpd_conf_modules:
  - {module: "socache_shmcb_module", mod: "mod_socache_shmcb.so"}
  - {module: "ssl_module", mod: "mod_ssl.so"}
  - {module: "php{{ apache_php_lib }}_module", mod: "libphp{{ apache_php_lib }}.so"}
  - {module: "cgi_module", mod: "mod_cgi.so", present: true}
  - {module: "cgid_module", mod: "mod_cgid.so", present: true}

apache_directory_blocks: {}
apache_vhost: {}
apache_alias:
  - "ScriptAlias /nagios/cgi-bin/ /usr/local/www/nagios/cgi-bin/"
  - "Alias /nagios/ /usr/local/www/nagios/"

# EOF
...