Remplace robots.txt to robotstxt
This commit is contained in:
parent
78ce023c71
commit
1a40b14662
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue