Authored by chunhua.zhang

add

1 --- 1 ---
2 -# handlers file for openresty  
  2 +# handlers file for openresty
  3 +
  4 +- name: validate nginx configuration
  5 + command: "{{ path }}/nginx/sbin/nginx -t -c {{ path }}/nginx/nginx.conf"
  6 + changed_when: False
  7 +
  8 +- name: reload nginx
  9 + command: "{{ path }}/nginx/sbin/nginx -s reload"
@@ -19,3 +19,5 @@ @@ -19,3 +19,5 @@
19 template: 19 template:
20 src: nginx.conf.j2 20 src: nginx.conf.j2
21 dest: "{{ path }}/nginx/conf/nginx.conf" 21 dest: "{{ path }}/nginx/conf/nginx.conf"
  22 + notify:
  23 + - reload nginx