...
|
...
|
@@ -8,6 +8,20 @@ |
|
|
msg: "user do not type YES"
|
|
|
when: confirmation != 'YES'
|
|
|
|
|
|
# make sure user www exist
|
|
|
- name: "make sure user www exist"
|
|
|
user:
|
|
|
name: www
|
|
|
|
|
|
# make sure log path exist
|
|
|
- name: "make sure log path exist"
|
|
|
file:
|
|
|
path: /Data/logs/nginx/
|
|
|
state: directory
|
|
|
mode: 0755
|
|
|
owner: www
|
|
|
group: www
|
|
|
|
|
|
# make sure path exist
|
|
|
- stat:
|
|
|
path: "{{ path }}"
|
...
|
...
|
|