mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-30 08:50:55 +08:00
Add httpd/mime-type role.
This commit is contained in:
8
roles/httpd/mime-type/tasks/main.yml
Normal file
8
roles/httpd/mime-type/tasks/main.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- template: >
|
||||
src=mime-types.conf dest=/etc/httpd/conf.d/{{website}}/mime-types.conf
|
||||
owner=root group=root mode=0644
|
||||
notify:
|
||||
- restart httpd
|
||||
tags:
|
||||
- httpd
|
||||
- httpd/mime-type
|
||||
1
roles/httpd/mime-type/templates/mime-types.conf
Normal file
1
roles/httpd/mime-type/templates/mime-types.conf
Normal file
@@ -0,0 +1 @@
|
||||
AddType {{mimetype}} {% for ext in extensions %} {{ext}} {% endfor %}
|
||||
Reference in New Issue
Block a user