From e383fe2bd749644fb1b44d14d7c88976111081f3 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Sat, 26 Dec 2020 12:09:00 -0700 Subject: [PATCH] adding robots.txt --- files/var/www/html/robots.txt | 2 ++ tasks/main.yml | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 files/var/www/html/robots.txt 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 }}"