main.yml
404 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 lua 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"