From 76f124fc40504a96938c0871e06919d100ae701e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 29 Jun 2016 14:06:22 +0200 Subject: [PATCH] copr: use robots.txt for dist-git --- roles/copr/dist_git/files/robots.txt | 2 ++ roles/copr/dist_git/tasks/main.yml | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 roles/copr/dist_git/files/robots.txt 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: