diff --git a/tasks/robots-txt.yml b/tasks/robots-txt.yml index e46a1e2..8696290 100644 --- a/tasks/robots-txt.yml +++ b/tasks/robots-txt.yml @@ -26,7 +26,7 @@ when: - nginx_install_robots_txt - - nginx_use_common_virthost + - nginx_virthosts | length - item.root is defined tags: [ 'nginx', 'robots_txt' ] @@ -51,5 +51,5 @@ when: - item.root is defined - not nginx_install_robots_txt - - nginx_use_common_virthost + - nginx_virthosts | length tags: [ 'nginx', 'robots_txt' ]