Other attempt to filter on nginx_virthosts length.
This commit is contained in:
parent
2c62fcff8c
commit
4b4aee4ab4
|
@ -149,8 +149,6 @@ nginx_robots_disallowed_useragent_list:
|
|||
nginx_robots_disallowed_uris: False
|
||||
nginx_robots_disallowed_uris_list: []
|
||||
|
||||
# Set this to True to use the provided virtualhost template.
|
||||
nginx_use_common_virthost: False
|
||||
# List any options here, ending with ;
|
||||
#
|
||||
# Virtualhost example
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
when: ansible_distribution_file_variety == "RedHat"
|
||||
- import_tasks: nginx-config.yml
|
||||
- import_tasks: nginx-virtualhosts.yml
|
||||
when: nginx_use_common_virthost
|
||||
when: nginx_virthosts | length
|
||||
- import_tasks: robots-txt.yml
|
||||
- import_tasks: nginx-logrotate.yml
|
||||
- import_tasks: nginx-letsencrypt.yml
|
||||
|
|
Loading…
Reference in New Issue