From 3c2e614eeb72419098c57b5990436dc562e1adc8 Mon Sep 17 00:00:00 2001 From: Rick Elrod Date: Tue, 29 Jan 2019 01:49:44 +0000 Subject: [PATCH] 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 --- roles/httpd/website/tasks/main.yml | 4 ++-- ...n.fedoraproject.org => admin.fedoraproject.org-robots.txt} | 0 ...ps.fedoraproject.org => apps.fedoraproject.org-robots.txt} | 0 ...ots.txt.fedoraproject.org => fedoraproject.org-robots.txt} | 0 ...doraproject.org => greenwave.fedoraproject.org-robots.txt} | 0 ...e.fedoraproject.org => paste.fedoraproject.org-robots.txt} | 0 ...doraproject.org => translate.fedoraproject.org-robots.txt} | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename roles/httpd/website/templates/robots/{robots.txt.admin.fedoraproject.org => admin.fedoraproject.org-robots.txt} (100%) rename roles/httpd/website/templates/robots/{robots.txt.apps.fedoraproject.org => apps.fedoraproject.org-robots.txt} (100%) rename roles/httpd/website/templates/robots/{robots.txt.fedoraproject.org => fedoraproject.org-robots.txt} (100%) rename roles/httpd/website/templates/robots/{robots.txt.greenwave.fedoraproject.org => greenwave.fedoraproject.org-robots.txt} (100%) rename roles/httpd/website/templates/robots/{robots.txt.paste.fedoraproject.org => paste.fedoraproject.org-robots.txt} (100%) rename roles/httpd/website/templates/robots/{robots.txt.translate.fedoraproject.org => translate.fedoraproject.org-robots.txt} (100%) diff --git a/roles/httpd/website/tasks/main.yml b/roles/httpd/website/tasks/main.yml index 399392ea94..483f7642c1 100644 --- a/roles/httpd/website/tasks/main.yml +++ b/roles/httpd/website/tasks/main.yml @@ -59,13 +59,13 @@ - name: And lastly, the robots.txt file template: > src={{item}} - dest=/srv/web/robots.txt.{{site_name}} + dest=/srv/web/{{site_name}}-robots.txt mode=0644 owner=root group=root setype=httpd_sys_content_t with_first_found: - - robots/robots.txt.{{site_name}} + - robots/{{site_name}}-robots.txt - robots/robots.txt notify: - reload proxyhttpd diff --git a/roles/httpd/website/templates/robots/robots.txt.admin.fedoraproject.org b/roles/httpd/website/templates/robots/admin.fedoraproject.org-robots.txt similarity index 100% rename from roles/httpd/website/templates/robots/robots.txt.admin.fedoraproject.org rename to roles/httpd/website/templates/robots/admin.fedoraproject.org-robots.txt diff --git a/roles/httpd/website/templates/robots/robots.txt.apps.fedoraproject.org b/roles/httpd/website/templates/robots/apps.fedoraproject.org-robots.txt similarity index 100% rename from roles/httpd/website/templates/robots/robots.txt.apps.fedoraproject.org rename to roles/httpd/website/templates/robots/apps.fedoraproject.org-robots.txt diff --git a/roles/httpd/website/templates/robots/robots.txt.fedoraproject.org b/roles/httpd/website/templates/robots/fedoraproject.org-robots.txt similarity index 100% rename from roles/httpd/website/templates/robots/robots.txt.fedoraproject.org rename to roles/httpd/website/templates/robots/fedoraproject.org-robots.txt diff --git a/roles/httpd/website/templates/robots/robots.txt.greenwave.fedoraproject.org b/roles/httpd/website/templates/robots/greenwave.fedoraproject.org-robots.txt similarity index 100% rename from roles/httpd/website/templates/robots/robots.txt.greenwave.fedoraproject.org rename to roles/httpd/website/templates/robots/greenwave.fedoraproject.org-robots.txt diff --git a/roles/httpd/website/templates/robots/robots.txt.paste.fedoraproject.org b/roles/httpd/website/templates/robots/paste.fedoraproject.org-robots.txt similarity index 100% rename from roles/httpd/website/templates/robots/robots.txt.paste.fedoraproject.org rename to roles/httpd/website/templates/robots/paste.fedoraproject.org-robots.txt diff --git a/roles/httpd/website/templates/robots/robots.txt.translate.fedoraproject.org b/roles/httpd/website/templates/robots/translate.fedoraproject.org-robots.txt similarity index 100% rename from roles/httpd/website/templates/robots/robots.txt.translate.fedoraproject.org rename to roles/httpd/website/templates/robots/translate.fedoraproject.org-robots.txt