Do not fail if item.root is not defined.
This commit is contained in:
parent
a8c3397460
commit
017e29776e
|
@ -22,7 +22,7 @@
|
||||||
group: root
|
group: root
|
||||||
mode: 0444
|
mode: 0444
|
||||||
loop: '{{ nginx_virthosts }}'
|
loop: '{{ nginx_virthosts }}'
|
||||||
when: nginx_webroot != item.root
|
when: item.root is defined and nginx_webroot != item.root
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- nginx_install_robots_txt
|
- nginx_install_robots_txt
|
||||||
|
@ -50,4 +50,5 @@
|
||||||
when:
|
when:
|
||||||
- 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