Make actual robots.txt files end with .txt so the mime-type is right since apache Alias will preserve the mime-type of the file it points to

Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
Rick Elrod 2019-01-29 01:49:44 +00:00
parent 77644a5183
commit 3c2e614eeb
7 changed files with 2 additions and 2 deletions

View file

@ -59,13 +59,13 @@
- name: And lastly, the robots.txt file - name: And lastly, the robots.txt file
template: > template: >
src={{item}} src={{item}}
dest=/srv/web/robots.txt.{{site_name}} dest=/srv/web/{{site_name}}-robots.txt
mode=0644 mode=0644
owner=root owner=root
group=root group=root
setype=httpd_sys_content_t setype=httpd_sys_content_t
with_first_found: with_first_found:
- robots/robots.txt.{{site_name}} - robots/{{site_name}}-robots.txt
- robots/robots.txt - robots/robots.txt
notify: notify:
- reload proxyhttpd - reload proxyhttpd