diff --git a/roles/copr/dist_git/files/robots.txt b/roles/copr/dist_git/files/robots.txt new file mode 100644 index 0000000000..1f53798bb4 --- /dev/null +++ b/roles/copr/dist_git/files/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / diff --git a/roles/copr/dist_git/tasks/main.yml b/roles/copr/dist_git/tasks/main.yml index f96f08dfaf..6a4588a685 100644 --- a/roles/copr/dist_git/tasks/main.yml +++ b/roles/copr/dist_git/tasks/main.yml @@ -108,6 +108,11 @@ - name: allow httpd to run cgit command: setsebool -P httpd_enable_cgi 1 +- name: install robots.txt + copy: src="robots.txt" dest="/var/www/html/" mode=0644 + tags: + - config + - name: ensure that services are enabled and started service: name="{{ item }}" enabled=yes state=started with_items: