|
@@ -2,23 +2,23 @@
|
|
|
|
|
|
- hosts: all
|
|
|
become: true
|
|
|
vars:
|
|
|
# common
|
|
|
ca_certificates:
|
|
|
testca: "{{ lookup('file', 'tests/data/x509/ca.cert.pem') }}"
|
|
|
testca: "{{ lookup('file', 'tests/data/x509/ca/level1.cert.pem') }}"
|
|
|
|
|
|
# web_server
|
|
|
default_https_tls_certificate: "{{ lookup('file', 'tests/data/x509/php-website_https.cert.pem') }}"
|
|
|
default_https_tls_key: "{{ lookup('file', 'tests/data/x509/php-website_https.key.pem') }}"
|
|
|
default_https_tls_certificate: "{{ lookup('file', 'tests/data/x509/server/php-website_https.cert.pem') }}"
|
|
|
default_https_tls_key: "{{ lookup('file', 'tests/data/x509/server/php-website_https.key.pem') }}"
|
|
|
|
|
|
roles:
|
|
|
- role: php_website
|
|
|
fqdn: parameters-mandatory
|
|
|
https_tls_certificate: "{{ lookup('file', 'tests/data/x509/parameters-mandatory_https.cert.pem') }}"
|
|
|
https_tls_key: "{{ lookup('file', 'tests/data/x509/parameters-mandatory_https.key.pem') }}"
|
|
|
https_tls_certificate: "{{ lookup('file', 'tests/data/x509/server/parameters-mandatory_https.cert.pem') }}"
|
|
|
https_tls_key: "{{ lookup('file', 'tests/data/x509/server/parameters-mandatory_https.key.pem') }}"
|
|
|
|
|
|
- role: php_website
|
|
|
additional_fpm_config:
|
|
|
"env[PATH]": "\"/usr/local/bin:/usr/bin:/bin\""
|
|
|
"security.limit_extensions": ".php .myphp"
|
|
|
additional_nginx_config:
|
|
@@ -31,14 +31,14 @@
|
|
|
environment_indicator:
|
|
|
background_colour: "#ff0000"
|
|
|
text_colour: "#00ff00"
|
|
|
text: "parameters-optional"
|
|
|
fqdn: parameters-optional.local
|
|
|
index: myindex.php
|
|
|
https_tls_certificate: "{{ lookup('file', 'tests/data/x509/parameters-optional.local_https.cert.pem') }}"
|
|
|
https_tls_key: "{{ lookup('file', 'tests/data/x509/parameters-optional.local_https.key.pem') }}"
|
|
|
https_tls_certificate: "{{ lookup('file', 'tests/data/x509/server/parameters-optional_https.cert.pem') }}"
|
|
|
https_tls_key: "{{ lookup('file', 'tests/data/x509/server/parameters-optional_https.key.pem') }}"
|
|
|
php_file_regex: "\\.myphp$"
|
|
|
php_rewrite_urls:
|
|
|
- ^/rewrite1/(.*)$ /rewrite.myphp?url=$1 last
|
|
|
- ^/rewrite2/(.*)$ /rewrite.myphp?url=$1 last
|
|
|
rewrites:
|
|
|
- '^/rewrite_to_index1/(.*) /myindex.php last'
|