Remplace robots.txt to robotstxt

This commit is contained in:
Dryusdan 2020-07-20 11:08:54 +02:00
parent 78ce023c71
commit 1a40b14662
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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: