From 1a40b146621aa3746fb6f10c655c0fd7cf8ac38e Mon Sep 17 00:00:00 2001 From: Dryusdan Date: Mon, 20 Jul 2020 11:08:54 +0200 Subject: [PATCH] Remplace robots.txt to robotstxt --- exemple.yml | 2 +- tasks/configure-vhost.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exemple.yml b/exemple.yml index 9540c10..baddddd 100644 --- a/exemple.yml +++ b/exemple.yml @@ -34,7 +34,7 @@ nginx_vhost: fastcgi_param: - name: HTTPS value: on - robots.txt: True + robotstxt: True robots_deny_market_bot: True robots_extra_parameters: | User-agent: BadBot diff --git a/tasks/configure-vhost.yml b/tasks/configure-vhost.yml index a29b16d..1f5f799 100644 --- a/tasks/configure-vhost.yml +++ b/tasks/configure-vhost.yml @@ -76,16 +76,16 @@ loop: "{{ nginx_vhost }}" when: - item.state == "present" or item.state is not defined - - item.robots.txt is defined and item.robots.txt == true + - item.robotstxt is defined and item.robotstxt == true tags: - vhost - name: "Add robots.txt" template: - src: "robots.txt/robots.txt}.j2" + src: "robots.txt/robots.txt.j2" dest: "/var/www/{{ item.server_name[0] }}/robots.txt" when: - - item.robots.txt is defined and item.robots.txt == true + - item.robotstxt is defined and item.robotstxt == true - item.state == "present" or item.state is not defined loop: "{{ nginx_vhost }}" tags: