From 8168119817fb5952095f8757ad0d6f74a556b75d Mon Sep 17 00:00:00 2001 From: binary Date: Mon, 7 Dec 2020 12:29:07 +0100 Subject: Dynamic httpd configuration via include --- roles/httpd/templates/httpd.conf.j2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 roles/httpd/templates/httpd.conf.j2 (limited to 'roles/httpd/templates') diff --git a/roles/httpd/templates/httpd.conf.j2 b/roles/httpd/templates/httpd.conf.j2 new file mode 100644 index 0000000..f437f41 --- /dev/null +++ b/roles/httpd/templates/httpd.conf.j2 @@ -0,0 +1,16 @@ + +# httpd.conf ~~ /etc/httpd.conf +# managed by Ansible + +types { + text/css css + text/html html htm + text/plain txt pgp pub + image/gif gif + image/jpeg jpeg jpg + image/png png +} + +{% for file in configurations.files %} +include "{{ file.path }}" +{% endfor %} -- cgit v1.2.3