Add httpd/mime-type role.
This commit is contained in:
parent
7bdb8471f5
commit
c45adc7d78
2 changed files with 9 additions and 0 deletions
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 %}
|
Loading…
Add table
Add a link
Reference in a new issue