Optionally reload the nginx service. Do not hardcode this. Builds taking place in environments different to those that they deploy into, will struggle to use this role, particularly if they are resolving any kind of external DNS service. I.E. with the resolver config.

pull/203/head
DaveHewy 4 years ago
parent 9ae8584281
commit 5210eee3a8
  1. 3
      defaults/main.yml
  2. 1
      handlers/main.yml

@ -42,6 +42,9 @@ nginx_server_names_hash_bucket_size: "64"
nginx_proxy_cache_path: ""
nginx_extra_conf_options: ""
nginx_manage_service_reload: true
# Example extra main options, used within the main nginx's context:
# nginx_extra_conf_options: |
# env VARIABLE;

@ -8,3 +8,4 @@
- name: reload nginx
service: name=nginx state=reloaded
when: nginx_manage_service_reload | bool