diff --git a/roles/httpd/website/tasks/main.yml b/roles/httpd/website/tasks/main.yml index 483f7642c1..9e1180f369 100644 --- a/roles/httpd/website/tasks/main.yml +++ b/roles/httpd/website/tasks/main.yml @@ -55,6 +55,7 @@ tags: - httpd - httpd/website + - robots - name: And lastly, the robots.txt file template: > diff --git a/roles/httpd/website/templates/robots.conf b/roles/httpd/website/templates/robots.conf index 40aa78dd1f..f442128e2e 100644 --- a/roles/httpd/website/templates/robots.conf +++ b/roles/httpd/website/templates/robots.conf @@ -1 +1 @@ -Alias /robots.txt /srv/web/robots.txt.{{ site_name }} +Alias /robots.txt /srv/web/{{site_name}}-robots.txt