diff --git a/files/var/www/html/robots.txt b/files/var/www/html/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/files/var/www/html/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / diff --git a/tasks/main.yml b/tasks/main.yml index 42df33b..84dc7fd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -53,6 +53,16 @@ notify: - restart_httpd +- name: Configure robots.txt + copy: + src: "var/www/html/robots.txt" + dest: "/var/www/html/robots.txt" + owner: root + group: root + mode: '0644' + notify: + - restart_httpd + - name: Deploy custom theme for koji unarchive: src: "{{ koji_theme_file }}"