main.yml
434 Bytes
---
# tasks file for openresty
# Configure resolv.conf
- name: copy lualib files to openresty
copy:
src: lualib/resty/
dest: "{{ path }}/lualib/resty/"
- name: copy yoho conf files to openresty
copy:
src: nginx/conf/
dest: "{{ path }}/nginx/conf/"
- name: update nginx upstream for file -nginx.conf
template:
src: nginx.conf.j2
dest: "{{ path }}/nginx/conf/nginx.conf"
notify:
- reload nginx