Another attempt to fix the missing item.root.
This commit is contained in:
parent
017e29776e
commit
bb11224fb6
|
@ -22,11 +22,12 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0444
|
mode: 0444
|
||||||
loop: '{{ nginx_virthosts }}'
|
loop: '{{ nginx_virthosts }}'
|
||||||
when: item.root is defined and nginx_webroot != item.root
|
when: nginx_webroot != item.root
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- nginx_install_robots_txt
|
- nginx_install_robots_txt
|
||||||
- nginx_use_common_virthost
|
- nginx_use_common_virthost
|
||||||
|
- item.root is defined
|
||||||
tags: [ 'nginx', 'robots_txt' ]
|
tags: [ 'nginx', 'robots_txt' ]
|
||||||
|
|
||||||
- name: Remove the global robots.txt
|
- name: Remove the global robots.txt
|
||||||
|
@ -48,7 +49,7 @@
|
||||||
loop: '{{ nginx_virthosts }}'
|
loop: '{{ nginx_virthosts }}'
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
- item.root is defined
|
||||||
- not nginx_install_robots_txt
|
- not nginx_install_robots_txt
|
||||||
- nginx_use_common_virthost
|
- nginx_use_common_virthost
|
||||||
- item.root is defined
|
|
||||||
tags: [ 'nginx', 'robots_txt' ]
|
tags: [ 'nginx', 'robots_txt' ]
|
||||||
|
|
Loading…
Reference in New Issue