Do not fail if item.root is not defined.
This commit is contained in:
parent
a8c3397460
commit
017e29776e
|
@ -22,7 +22,7 @@
|
|||
group: root
|
||||
mode: 0444
|
||||
loop: '{{ nginx_virthosts }}'
|
||||
when: nginx_webroot != item.root
|
||||
when: item.root is defined and nginx_webroot != item.root
|
||||
|
||||
when:
|
||||
- nginx_install_robots_txt
|
||||
|
@ -50,4 +50,5 @@
|
|||
when:
|
||||
- not nginx_install_robots_txt
|
||||
- nginx_use_common_virthost
|
||||
- item.root is defined
|
||||
tags: [ 'nginx', 'robots_txt' ]
|
||||
|
|
Loading…
Reference in New Issue