Authored by chunhua.zhang

add

1 --- 1 ---
2 # tasks file for openresty 2 # tasks file for openresty
3 3
4 -- name: make sure openresty foler exist  
5 - stat: 4 +- stat:
6 path: "{{ path }}" 5 path: "{{ path }}"
7 register: stat_result 6 register: stat_result
8 - fail: 7 +- fail:
9 msg: " openresty {{ path }} not exist!" 8 msg: " openresty {{ path }} not exist!"
10 when: stat_result.stat.exists == False 9 when: stat_result.stat.exists == False
11 10