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: fastcgi_param:
- name: HTTPS - name: HTTPS
value: on value: on
robots.txt: True robotstxt: True
robots_deny_market_bot: True robots_deny_market_bot: True
robots_extra_parameters: | robots_extra_parameters: |
User-agent: BadBot User-agent: BadBot

View file

@ -76,16 +76,16 @@
loop: "{{ nginx_vhost }}" loop: "{{ nginx_vhost }}"
when: when:
- item.state == "present" or item.state is not defined - 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: tags:
- vhost - vhost
- name: "Add robots.txt" - name: "Add robots.txt"
template: template:
src: "robots.txt/robots.txt}.j2" src: "robots.txt/robots.txt.j2"
dest: "/var/www/{{ item.server_name[0] }}/robots.txt" dest: "/var/www/{{ item.server_name[0] }}/robots.txt"
when: 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 - item.state == "present" or item.state is not defined
loop: "{{ nginx_vhost }}" loop: "{{ nginx_vhost }}"
tags: tags: