aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd/templates
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-12-07 12:29:07 +0100
committerbinary <me@rgoncalves.se>2020-12-07 12:29:07 +0100
commit8168119817fb5952095f8757ad0d6f74a556b75d (patch)
tree4b4d705b62e67a6aed0566fb5b5dedc965ff992d /roles/httpd/templates
parentaa76b9a63e63cd2b88143390cf2c5fb63af61e06 (diff)
downloadinfrastructure-8168119817fb5952095f8757ad0d6f74a556b75d.tar.gz
Dynamic httpd configuration via include
Diffstat (limited to 'roles/httpd/templates')
-rw-r--r--roles/httpd/templates/httpd.conf.j216
1 files changed, 16 insertions, 0 deletions
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 %}
remember that computers suck.