...
|
...
|
@@ -2,6 +2,29 @@ |
|
|
# tasks file for openresty
|
|
|
# Configure resolv.conf
|
|
|
|
|
|
|
|
|
- name: make sure openresty foler exist
|
|
|
stat:
|
|
|
path: "{{ path }}"
|
|
|
register: stat_result
|
|
|
fail:
|
|
|
msg: " openresty {{ path }} not exist!"
|
|
|
when: stat_result.stat.exists == False
|
|
|
|
|
|
|
|
|
- name: make sure groups exist in inventory file
|
|
|
fail:
|
|
|
msg: "group {{ g }} not exist!"
|
|
|
when: item not in groups
|
|
|
with_items:
|
|
|
- java-nginx
|
|
|
- java-gateway
|
|
|
- java-brower
|
|
|
- java-wechat
|
|
|
- java-activity
|
|
|
- java-erpgateway
|
|
|
- java-union
|
|
|
|
|
|
- name: copy lualib files to openresty
|
|
|
copy:
|
|
|
src: lualib/resty/
|
...
|
...
|
|