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